diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-09-06 23:55:37 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-09-06 23:55:37 +0200 |
commit | 24a3921f3c42b340a180f587bf5b7204ec712f85 (patch) | |
tree | 960070a1dac156cbdd9bc2de77250cc79d925e60 /include/arch/arduino-nano | |
parent | 7cb855d4c47a9d75abd60a80aab0ca6630bc1549 (diff) |
add blinkencat3 app
Diffstat (limited to 'include/arch/arduino-nano')
-rw-r--r-- | include/arch/arduino-nano/driver/gpio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/arch/arduino-nano/driver/gpio.h b/include/arch/arduino-nano/driver/gpio.h index 0b4ca26..74aa879 100644 --- a/include/arch/arduino-nano/driver/gpio.h +++ b/include/arch/arduino-nano/driver/gpio.h @@ -148,10 +148,13 @@ class GPIO { if (pin < 8) { } else if (pin < 16) { PCMSK0 |= _BV(pin - 8); + PCICR |= _BV(PCIE0); } else if (pin < 24) { PCMSK1 |= _BV(pin - 16); + PCICR |= _BV(PCIE1); } else if (pin < 32) { PCMSK2 |= _BV(pin - 24); + PCICR |= _BV(PCIE2); } } inline void disable_int(unsigned char const pin) { |