mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fix warnings on Arduino Due
This commit is contained in:
parent
38ed04fe77
commit
9d4f9108e6
1 changed files with 19 additions and 0 deletions
19
settings.h
19
settings.h
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue