Skip to content

Commit f9de6dc

Browse files
committed
Adjust EXTERNAL_NUM_INTERRUPTS to be consistent with offset calculation
1 parent 6441dd8 commit f9de6dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cores/arduino/wiring_private.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ extern "C"{
3636

3737
uint32_t countPulseASM(volatile uint8_t *port, uint8_t bit, uint8_t stateMask, unsigned long maxloops);
3838

39-
#define EXTERNAL_NUM_INTERRUPTS NUM_TOTAL_PINS
40-
4139
typedef void (*voidFuncPtr)(void);
4240

4341
#ifdef __cplusplus

variants/uno2018/pins_arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#define ANALOG_INPUT_OFFSET 14
3636
#define analogInputToDigitalPin(p) ((p < NUM_ANALOG_INPUTS) ? (p) + ANALOG_INPUT_OFFSET : NOT_A_PIN)
3737

38+
#define EXTERNAL_NUM_INTERRUPTS 48
39+
3840
#define digitalPinHasPWM(p) ((p) == 3 || (p) == 5 || (p) == 6 || (p) == 9 || (p) == 10 || (p) == 11)
3941

4042
#ifdef REV_A_ENGINEERING_SAMPLE

0 commit comments

Comments
 (0)