epsilonrt / piduino

Arduino API on Pi boards, the best of both worlds !
https://epsilonrt.fr/2019/01/piduino/
GNU Lesser General Public License v3.0
29 stars 7 forks source link

Conflict between binary.h and termio.h #22

Open epsilonrt opened 4 years ago

epsilonrt commented 4 years ago

The constants defined in /usr/include/piduino/arduino/binary.h enter into confilt with those defining the baudrates in /usr/include/aarch64-linux-gnu/bits/termios.h:

$ gcc -o PiZiGate_test main.c $(pkg-config --cflags --libs piduino) In file included from /usr/include/piduino/arduino/Arduino.h:224, from main.c:11: /usr/include/piduino/arduino/binary.h:23: warning: "B0" redefined

define B0 0

In file included from /usr/include/termios.h:39, from main.c:8: /usr/include/aarch64-linux-gnu/bits/termios.h:121: note: this is the location of the previous definition

define B0 0000000 / hang up /

In file included from /usr/include/piduino/arduino/Arduino.h:224, from main.c:11: /usr/include/piduino/arduino/binary.h:65: warning: "B110" redefined

define B110 6

In file included from /usr/include/termios.h:39, from main.c:8: /usr/include/aarch64-linux-gnu/bits/termios.h:124: note: this is the location of the previous definition

define B110 0000003

In file included from /usr/include/piduino/arduino/Arduino.h:224, from main.c:11: /usr/include/piduino/arduino/binary.h:277: warning: "B1000000" redefined

define B1000000 64

In file included from /usr/include/termios.h:39, from main.c:8: /usr/include/aarch64-linux-gnu/bits/termios.h:162: note: this is the location of the previous definition

define B1000000 0010010