4#include <Settings/NamespaceSettings.hpp>
6#ifdef ARDUINO_ARCH_NRF52840
7#include <pins_arduino.h>
13#if defined(CORE_NUM_INTERRUPT)
18#define CORE_NUM_INTERRUPT NUM_EXTERNAL_INTERRUPTS
21#elif defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328PB__) || \
22 defined(__AVR_ATmega168__) || defined(__AVR_ATmega8__)
23#define CORE_NUM_INTERRUPT 2
26#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
27#define CORE_NUM_INTERRUPT 6
30#elif defined(__AVR_ATmega4809__)
31#define CORE_NUM_INTERRUPT 22
34#elif defined(__AVR_ATmega32U4__) && !defined(CORE_TEENSY)
35#define CORE_NUM_INTERRUPT 5
38#elif defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644__) || \
39 defined(__AVR_ATmega1284P__)
40#define CORE_NUM_INTERRUPT 3
43#elif defined(__AVR_ATmega32U2__) || defined(__AVR_ATmega16U2__)
44#define CORE_NUM_INTERRUPT 8
46#elif defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__)
47#define CORE_NUM_INTERRUPT 1
50#elif defined(__AVR_ATtinyX313__)
51#define CORE_NUM_INTERRUPT 2
54#elif defined(__AVR_ATtiny167__)
55#define CORE_NUM_INTERRUPT 2
58#elif defined(__SAM3X8E__)
59#define CORE_NUM_INTERRUPT 54
63#define CORE_NUM_INTERRUPT EXTERNAL_NUM_INTERRUPTS
67#define CORE_NUM_INTERRUPT 40
71#elif defined(__SAMD21G18A__) || defined(__SAMD21E18A__)
72#define CORE_NUM_INTERRUPT 31
75#elif defined(__SAMD51__)
76#define CORE_NUM_INTERRUPT 26
79#elif defined(ARDUINO_ARCH_NRF52840)
80#define CORE_NUM_INTERRUPT NUM_DIGITAL_PINS
83#elif defined(ARDUINO_NANO_RP2040_CONNECT)
84#define CORE_NUM_INTERRUPT 20
86#elif defined(ARDUINO_ARCH_RP2040)
87#define CORE_NUM_INTERRUPT 26
90#elif defined(ARDUINO_ARCH_MBED)
91#define CORE_NUM_INTERRUPT NUM_DIGITAL_PINS
95#warning "Unknown board. Please specify the number of external interrupts."
96#define CORE_NUM_INTERRUPT NUM_DIGITAL_PINS
#define BEGIN_CS_NAMESPACE