Fix warnings on Arduino Due

This commit is contained in:
Kristian Sloth Lauszus 2016-04-19 16:54:31 +02:00
parent 38ed04fe77
commit 9d4f9108e6

View file

@ -152,4 +152,23 @@ e-mail : support@circuitsathome.com
extern SPI_HandleTypeDef SPI_Handle; // Needed to be declared in your main.cpp
#endif
// Fix defines on Arduino Due
#ifdef ARDUINO_SAM_DUE
#ifdef tokSETUP
#undef tokSETUP
#endif
#ifdef tokIN
#undef tokIN
#endif
#ifdef tokOUT
#undef tokOUT
#endif
#ifdef tokINHS
#undef tokINHS
#endif
#ifdef tokOUTHS
#undef tokOUTHS
#endif
#endif
#endif /* SETTINGS_H */