From 18117b4eb8ffdde61bfa8f3d2bbf3ab721ceb764 Mon Sep 17 00:00:00 2001 From: Robert Hartung Date: Thu, 1 Aug 2019 09:26:27 +0200 Subject: [PATCH] boards/arduino-mega2560: restrics usable pin change interrupts --- boards/arduino-mega2560/include/atmega_pcint.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 boards/arduino-mega2560/include/atmega_pcint.h diff --git a/boards/arduino-mega2560/include/atmega_pcint.h b/boards/arduino-mega2560/include/atmega_pcint.h new file mode 100644 index 0000000000..47dcbafdbd --- /dev/null +++ b/boards/arduino-mega2560/include/atmega_pcint.h @@ -0,0 +1,16 @@ +#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) +#define ATMEGA_PCINT_MAP_PCINT1 GPIO_PIN(PORT_E, 0), GPIO_PIN(PORT_J, 0), GPIO_PIN(PORT_J, 1), GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF +#define ATMEGA_PCINT_MAP_PCINT2 GPIO_PIN(PORT_K, 0), GPIO_PIN(PORT_K, 1), GPIO_PIN(PORT_K, 2), GPIO_PIN(PORT_K, 3), GPIO_PIN(PORT_K, 4), GPIO_PIN(PORT_K, 5), GPIO_PIN(PORT_K, 6), GPIO_PIN(PORT_K, 7) + +#ifdef __cplusplus +} +#endif + +#endif /* ATMEGA_PCINT_H */