From c5caa5d288ca6c4a08fb8fe7e2125e6988cd1065 Mon Sep 17 00:00:00 2001 From: Roger Clark Date: Mon, 13 Nov 2017 12:03:19 +1100 Subject: [PATCH] Fixed missing definition of digitalPinToInterrupt, by adding macro which simply uses the pin number - as it doesnt need to be mapped --- STM32F1/cores/maple/wirish.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/STM32F1/cores/maple/wirish.h b/STM32F1/cores/maple/wirish.h index 3ffee83..eb07c77 100644 --- a/STM32F1/cores/maple/wirish.h +++ b/STM32F1/cores/maple/wirish.h @@ -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