From 6ea326112dde4adb17365d1bd3afd1009bcab08c Mon Sep 17 00:00:00 2001 From: Matthew Blue Date: Sun, 15 Apr 2018 17:58:29 -0400 Subject: [PATCH] cpu/atmega256rfr2: external interrupt refactor --- cpu/atmega256rfr2/include/periph_cpu.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cpu/atmega256rfr2/include/periph_cpu.h b/cpu/atmega256rfr2/include/periph_cpu.h index 731149bb5a..03562a2402 100644 --- a/cpu/atmega256rfr2/include/periph_cpu.h +++ b/cpu/atmega256rfr2/include/periph_cpu.h @@ -46,6 +46,20 @@ enum { PORT_G = 6, /**< port G */ }; +/** + * @brief Available external interrupt pins on the ATmega256rfr family + * + * In order of their interrupt number. + */ +#define CPU_ATMEGA_EXT_INTS { GPIO_PIN(PORT_D, 0), \ + GPIO_PIN(PORT_D, 1), \ + GPIO_PIN(PORT_D, 2), \ + GPIO_PIN(PORT_D, 3), \ + GPIO_PIN(PORT_E, 4), \ + GPIO_PIN(PORT_E, 5), \ + GPIO_PIN(PORT_E, 6), \ + GPIO_PIN(PORT_E, 7) } + /** * @name Defines for the I2C interface * @{