Bill Greiman
Well-known member
I forgot to mention this small problem in the previous post about ChibiOS/RT.
There is a define conflict in wiring.h that causes warnings when compiling C files that include stdbool.h before wiring.h
See the attached program.
This is from a compile for Teensy 3.6.
I am making good progress on the ChibiOS port. I have AVR, Teensy 3.xx, and Arduino Zero working with a single library.
There is a define conflict in wiring.h that causes warnings when compiling C files that include stdbool.h before wiring.h
See the attached program.
This is from a compile for Teensy 3.6.
In file included from D:\Teensy\teensy135\hardware\teensy\avr\cores\teensy3/WProgram.h:15:0,
from D:\Teensy\teensy135\hardware\teensy\avr\cores\teensy3/Arduino.h:1,
from C:\Users\bill\AppData\Local\Temp\arduino_build_496564\sketch\src.c:2:
D:\Teensy\teensy135\hardware\teensy\avr\cores\teensy3/wiring.h:143:0: warning: "true" redefined [enabled by default]
#define true (!false)
^
In file included from C:\Users\bill\AppData\Local\Temp\arduino_build_496564\sketch\src.c:1:0:
d:\teensy\teensy135\hardware\tools\arm\lib\gcc\arm-none-eabi\4.8.4\include\stdbool.h:34:0: note: this is the location of the previous definition
#define true 1
^
Sketch uses 20680 bytes (1%) of program storage space. Maximum is 1048576 bytes.
Global variables use 3968 bytes (1%) of dynamic memory, leaving 258176 bytes for local variables. Maximum is 262144 bytes.
I am making good progress on the ChibiOS port. I have AVR, Teensy 3.xx, and Arduino Zero working with a single library.
Attachments
Last edited: