From 24a3921f3c42b340a180f587bf5b7204ec712f85 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 6 Sep 2019 23:55:37 +0200 Subject: add blinkencat3 app --- include/arch/arduino-nano/driver/gpio.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/arch/arduino-nano') 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) { -- cgit v1.2.3