diff options
-rw-r--r-- | include/arch/arduino-nano/driver/gpio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/arch/arduino-nano/driver/gpio.h b/include/arch/arduino-nano/driver/gpio.h index 1a2fbe0..72099bc 100644 --- a/include/arch/arduino-nano/driver/gpio.h +++ b/include/arch/arduino-nano/driver/gpio.h @@ -39,6 +39,7 @@ class GPIO { inline void setup() { DDRB = _BV(PB5); } +#pragma GCC diagnostic ignored "-Wunused-parameter" inline void led_on(unsigned char id) { PORTB |= _BV(PB5); } @@ -58,6 +59,7 @@ class GPIO { DDRD &= ~_BV(pin - 24); } } +#pragma GCC diagnostic pop inline void input(unsigned char const pin, unsigned char const pull) { if (pin < 8) { } else if (pin < 16) { |