summaryrefslogtreecommitdiff
path: root/include/arch
diff options
context:
space:
mode:
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) {