From 0b2d620161f3005e06207d9da78d8119f3ba266c Mon Sep 17 00:00:00 2001 From: Matthew Blue Date: Sun, 15 Apr 2018 17:58:49 -0400 Subject: [PATCH] cpu/atmega328p: external interrupt refactor --- cpu/atmega328p/include/periph_cpu.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cpu/atmega328p/include/periph_cpu.h b/cpu/atmega328p/include/periph_cpu.h index 5e29096ad4..03ab92365f 100644 --- a/cpu/atmega328p/include/periph_cpu.h +++ b/cpu/atmega328p/include/periph_cpu.h @@ -41,6 +41,14 @@ enum { PORT_D = 3 /**< port D */ }; +/** + * @brief Available external interrupt pins on the ATmega328p family + * + * In order of their interrupt number. + */ +#define CPU_ATMEGA_EXT_INTS { GPIO_PIN(PORT_D, 2), \ + GPIO_PIN(PORT_D, 3) } + /** * @name Defines for the I2C interface * @{