Skip to content

Commit c5caa5d

Browse files
Fixed missing definition of digitalPinToInterrupt, by adding macro which simply uses the pin number - as it doesnt need to be mapped
1 parent 9b4122e commit c5caa5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

STM32F1/cores/maple/wirish.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,7 @@ typedef unsigned int word;
104104
#define clockCyclesToMicroseconds(a) ( ((a) * 1000L) / (F_CPU / 1000L) )
105105
#define microsecondsToClockCycles(a) ( (a) * (F_CPU / 1000000L) )
106106

107+
#define digitalPinToInterrupt(pin) (pin)
108+
107109
#endif
108110

0 commit comments

Comments
 (0)