diff --git a/cpu/atmega1281/include/periph_cpu.h b/cpu/atmega1281/include/periph_cpu.h index 1f503fdb07..9f69d979e7 100644 --- a/cpu/atmega1281/include/periph_cpu.h +++ b/cpu/atmega1281/include/periph_cpu.h @@ -42,6 +42,20 @@ enum { PORT_G = 6, /**< port G */ }; +/** + * @brief Available external interrupt pins on the ATmega1281 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 * @{