Fixed missing definition of digitalPinToInterrupt, by adding macro which simply uses the pin number - as it doesnt need to be mapped

This commit is contained in:
Roger Clark 2017-11-13 12:03:19 +11:00
parent 9b4122ecaf
commit c5caa5d288
1 changed files with 2 additions and 0 deletions

View File

@ -104,5 +104,7 @@ typedef unsigned int word;
#define clockCyclesToMicroseconds(a) ( ((a) * 1000L) / (F_CPU / 1000L) )
#define microsecondsToClockCycles(a) ( (a) * (F_CPU / 1000000L) )
#define digitalPinToInterrupt(pin) (pin)
#endif