summaryrefslogtreecommitdiff
path: root/include/arch
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-09-06 23:55:37 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-09-06 23:55:37 +0200
commit24a3921f3c42b340a180f587bf5b7204ec712f85 (patch)
tree960070a1dac156cbdd9bc2de77250cc79d925e60 /include/arch
parent7cb855d4c47a9d75abd60a80aab0ca6630bc1549 (diff)
add blinkencat3 app
Diffstat (limited to 'include/arch')
-rw-r--r--include/arch/arduino-nano/driver/gpio.h3
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) {