From 849c94dc23857818b66980d2fe246b6ab1ca6feb Mon Sep 17 00:00:00 2001 From: markMLl Date: Fri, 23 Sep 2022 15:37:44 +0100 Subject: [PATCH] Modify pins definition to eliminate spurious warnings about timer redefinitions when building SkyNet3D. --- .../anet/avr/variants/sanguino/pins_arduino.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hardware/anet/avr/variants/sanguino/pins_arduino.h b/hardware/anet/avr/variants/sanguino/pins_arduino.h index efcee9d..7ad4465 100755 --- a/hardware/anet/avr/variants/sanguino/pins_arduino.h +++ b/hardware/anet/avr/variants/sanguino/pins_arduino.h @@ -36,22 +36,38 @@ #define NOT_A_PORT 0 #define NOT_ON_TIMER 0 +#undef TIMER0A #define TIMER0A 1 +#undef TIMER0B #define TIMER0B 2 +#undef TIMER1A #define TIMER1A 3 +#undef TIMER1B #define TIMER1B 4 +#undef TIMER2 #define TIMER2 5 +#undef TIMER2A #define TIMER2A 6 +#undef TIMER2B #define TIMER2B 7 +#undef TIMER3A #define TIMER3A 8 +#undef TIMER3B #define TIMER3B 9 +#undef TIMER3C #define TIMER3C 10 +#undef TIMER4A #define TIMER4A 11 +#undef TIMER4B #define TIMER4B 12 +#undef TIMER4C #define TIMER4C 13 +#undef TIMER5A #define TIMER5A 14 +#undef TIMER5B #define TIMER5B 15 +#undef TIMER5C #define TIMER5C 16 const static uint8_t SS = 4;