cpu/atmega1281: fix pcint

This commit is contained in:
Leandro Lanzieri 2021-11-17 15:05:25 +01:00
parent 5a84a2513f
commit 1035620b38
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
4 changed files with 3 additions and 5 deletions

View File

@ -10,7 +10,6 @@ config CPU_MODEL_ATMEGA1281
bool bool
select CPU_FAM_ATMEGA128 select CPU_FAM_ATMEGA128
select HAS_ATMEGA_PCINT1 select HAS_ATMEGA_PCINT1
select HAS_ATMEGA_PCINT2
select HAS_CPU_ATMEGA1281 select HAS_CPU_ATMEGA1281
## Definition of specific features ## Definition of specific features

View File

@ -1,6 +1,6 @@
# expand atmega_pcint for additional PCINTs of atmega1281 # expand atmega_pcint for additional PCINTs of atmega1281
ifneq (,$(filter atmega_pcint,$(USEMODULE))) ifneq (,$(filter atmega_pcint,$(USEMODULE)))
USEMODULE += atmega_pcint1 atmega_pcint2 USEMODULE += atmega_pcint1
endif endif
include $(RIOTCPU)/atmega_common/Makefile.dep include $(RIOTCPU)/atmega_common/Makefile.dep

View File

@ -1,3 +1,3 @@
FEATURES_PROVIDED += atmega_pcint1 atmega_pcint2 FEATURES_PROVIDED += atmega_pcint1
include $(RIOTCPU)/atmega_common/Makefile.features include $(RIOTCPU)/atmega_common/Makefile.features

View File

@ -6,8 +6,7 @@ extern "C" {
#endif #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_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_PCINT1 GPIO_PIN(PORT_E, 0), GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF
#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)
#ifdef __cplusplus #ifdef __cplusplus
} }