cpu/atmega32u4: pin change interrupts
This commit is contained in:
parent
0fc55cdaf9
commit
dcd9177271
2
cpu/atmega32u4/Makefile.dep
Normal file
2
cpu/atmega32u4/Makefile.dep
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# common Makefile.dep expand the atmega_pcint pseudo module
|
||||||
|
include $(RIOTCPU)/atmega_common/Makefile.dep
|
||||||
@ -1 +1,2 @@
|
|||||||
-include $(RIOTCPU)/atmega_common/Makefile.features
|
# atmega_common provides atmega_pcint0
|
||||||
|
include $(RIOTCPU)/atmega_common/Makefile.features
|
||||||
|
|||||||
14
cpu/atmega32u4/include/atmega_pcint.h
Normal file
14
cpu/atmega32u4/include/atmega_pcint.h
Normal 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 */
|
||||||
Loading…
x
Reference in New Issue
Block a user