cpu/atmega32u4: pin change interrupts

This commit is contained in:
Robert Hartung 2019-08-01 09:23:58 +02:00
parent 0fc55cdaf9
commit dcd9177271
3 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,2 @@
# common Makefile.dep expand the atmega_pcint pseudo module
include $(RIOTCPU)/atmega_common/Makefile.dep

View File

@ -1 +1,2 @@
-include $(RIOTCPU)/atmega_common/Makefile.features # atmega_common provides atmega_pcint0
include $(RIOTCPU)/atmega_common/Makefile.features

View File

@ -0,0 +1,14 @@
#ifndef ATMEGA_PCINT_H
#define ATMEGA_PCINT_H
#ifdef __cplusplus
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)
#ifdef __cplusplus
}
#endif
#endif /* ATMEGA_PCINT_H */