File tree Expand file tree Collapse file tree 5 files changed +10
-0
lines changed Expand file tree Collapse file tree 5 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ static const uint8_t A11 = 29; // D12
133133extern const uint8_t PROGMEM analog_pin_to_channel_PGM [];
134134#define analogPinToChannel (P ) ( pgm_read_byte( analog_pin_to_channel_PGM + (P) ) )
135135
136+ #define digitalPinToInterrupt (p ) ((p) == 0 ? 2 : ((p) == 1 ? 3 : ((p) == 2 ? 1 : ((p) == 3 ? 0 : ((p) == 7 ? 4 : NOT_AN_INTERRUPT)))))
137+
136138#ifdef ARDUINO_MAIN
137139
138140// On the Arduino board, digital pins are also used
Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ static const uint8_t A15 = 69;
8383 ( (((p) >= 62) && ((p) <= 69)) ? ((p) - 62) : \
8484 0 ) ) ) ) ) )
8585
86+ #define digitalPinToInterrupt (p ) ((p) == 2 ? 0 : ((p) == 3 ? 1 : ((p) >= 18 && (p) <= 21 ? 23 - (p) : NOT_AN_INTERRUPT)))
87+
8688#ifdef ARDUINO_MAIN
8789
8890const uint16_t PROGMEM port_to_mode_PGM [] = {
Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ static const uint8_t LED1 = 17; // D17 - RX_Led
9494extern const uint8_t PROGMEM analog_pin_to_channel_PGM [];
9595#define analogPinToChannel (P ) ( pgm_read_byte( analog_pin_to_channel_PGM + (P) ) )
9696
97+ #define digitalPinToInterrupt (p ) ((p) == 0 ? 2 : ((p) == 1 ? 3 : ((p) == 2 ? 1 : ((p) == 3 ? 0 : ((p) == 7 ? 4 : NOT_AN_INTERRUPT)))))
98+
9799#ifdef ARDUINO_MAIN
98100
99101// On the Arduino board, digital pins are also used
Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ static const uint8_t TK4 = 12; // A11
8989extern const uint8_t PROGMEM analog_pin_to_channel_PGM [];
9090#define analogPinToChannel (P ) ( pgm_read_byte( analog_pin_to_channel_PGM + (P) ) )
9191
92+ #define digitalPinToInterrupt (p ) ((p) == 0 ? 2 : ((p) == 1 ? 3 : ((p) == 2 ? 1 : ((p) == 3 ? 0 : ((p) == 7 ? 4 : NOT_AN_INTERRUPT)))))
93+
9294#ifdef ARDUINO_MAIN
9395
9496// On the Arduino board, digital pins are also used
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ static const uint8_t A7 = 21;
6060#define digitalPinToPCMSK (p ) (((p) <= 7) ? (&PCMSK2) : (((p) <= 13) ? (&PCMSK0) : (((p) <= 21) ? (&PCMSK1) : ((uint8_t *)0))))
6161#define digitalPinToPCMSKbit (p ) (((p) <= 7) ? (p) : (((p) <= 13) ? ((p) - 8) : ((p) - 14)))
6262
63+ #define digitalPinToInterrupt (p ) ((p) == 2 ? 0 : ((p) == 3 ? 1 : NOT_AN_INTERRUPT))
64+
6365#ifdef ARDUINO_MAIN
6466
6567// On the Arduino board, digital pins are also used
You can’t perform that action at this time.
0 commit comments