Skip to content

Commit 51c271f

Browse files
committed
Revert "Revert "define digitalPinToInterrupt for backwards compatibility""
This reverts commit 07f55ad.
1 parent 07f55ad commit 51c271f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/arduino/Arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ extern "C"{
4343
#define clockCyclesToMicroseconds(a) ( ((a) * 1000L) / (SYSTEM_CORE_CLOCK / 1000L) )
4444
#define microsecondsToClockCycles(a) ( (a) * (SYSTEM_CORE_CLOCK / 1000000L) )
4545

46+
#define digitalPinToInterrupt(P) ( P )
47+
4648
void yield(void);
4749

4850
/* sketch */

0 commit comments

Comments
 (0)