diff --git a/cpu/atmega1281/Kconfig b/cpu/atmega1281/Kconfig index dac6ae74fa..0c35859439 100644 --- a/cpu/atmega1281/Kconfig +++ b/cpu/atmega1281/Kconfig @@ -10,7 +10,6 @@ config CPU_MODEL_ATMEGA1281 bool select CPU_FAM_ATMEGA128 select HAS_ATMEGA_PCINT1 - select HAS_ATMEGA_PCINT2 select HAS_CPU_ATMEGA1281 ## Definition of specific features diff --git a/cpu/atmega1281/Makefile.dep b/cpu/atmega1281/Makefile.dep index a348f4ade4..d062821efb 100644 --- a/cpu/atmega1281/Makefile.dep +++ b/cpu/atmega1281/Makefile.dep @@ -1,6 +1,6 @@ # expand atmega_pcint for additional PCINTs of atmega1281 ifneq (,$(filter atmega_pcint,$(USEMODULE))) - USEMODULE += atmega_pcint1 atmega_pcint2 + USEMODULE += atmega_pcint1 endif include $(RIOTCPU)/atmega_common/Makefile.dep diff --git a/cpu/atmega1281/Makefile.features b/cpu/atmega1281/Makefile.features index 39270920c7..89ee09e178 100644 --- a/cpu/atmega1281/Makefile.features +++ b/cpu/atmega1281/Makefile.features @@ -1,3 +1,3 @@ -FEATURES_PROVIDED += atmega_pcint1 atmega_pcint2 +FEATURES_PROVIDED += atmega_pcint1 include $(RIOTCPU)/atmega_common/Makefile.features diff --git a/cpu/atmega1281/include/atmega_pcint.h b/cpu/atmega1281/include/atmega_pcint.h index c0f6d6d28c..c25d43c169 100644 --- a/cpu/atmega1281/include/atmega_pcint.h +++ b/cpu/atmega1281/include/atmega_pcint.h @@ -6,8 +6,7 @@ extern "C" { #endif #define ATMEGA_PCINT_MAP_PCINT0 GPIO_PIN(PORT_B, 0), GPIO_PIN(PORT_B, 1), GPIO_PIN(PORT_B, 2), GPIO_PIN(PORT_B, 3), GPIO_PIN(PORT_B, 4), GPIO_PIN(PORT_B, 5), GPIO_PIN(PORT_B, 6), GPIO_PIN(PORT_B, 7) -#define ATMEGA_PCINT_MAP_PCINT1 GPIO_PIN(PORT_E, 0), GPIO_PIN(PORT_J, 0), GPIO_PIN(PORT_J, 1), GPIO_PIN(PORT_J, 2), GPIO_PIN(PORT_J, 3), GPIO_PIN(PORT_J, 4), GPIO_PIN(PORT_J, 5), GPIO_PIN(PORT_J, 6) -#define ATMEGA_PCINT_MAP_PCINT2 GPIO_PIN(PORT_K, 0), GPIO_PIN(PORT_K, 1), GPIO_PIN(PORT_K, 2), GPIO_PIN(PORT_K, 3), GPIO_PIN(PORT_K, 4), GPIO_PIN(PORT_K, 5), GPIO_PIN(PORT_K, 6), GPIO_PIN(PORT_K, 7) +#define ATMEGA_PCINT_MAP_PCINT1 GPIO_PIN(PORT_E, 0), GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF #ifdef __cplusplus }