Skip to content

Commit 80943e6

Browse files
committed
FIXME: provide stubs for old macros
This allows at least to bypass the compilation errors on some "catchall" libraries like Adafruit's BusIO. Code using that macros won't work but we are mostly interested in Wire and SPI
1 parent b5f0695 commit 80943e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cores/arduino/Arduino.h

+5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ void noInterrupts(void);
107107

108108
int digitalPinToInterrupt(pin_size_t pin);
109109

110+
#define digitalPinToPort(x) (x)
111+
#define digitalPinToBitMask(x) (x)
112+
#define portOutputRegister(x) (x)
113+
#define portInputRegister(x) (x)
114+
110115
#include <variant.h>
111116
#ifdef __cplusplus
112117
#include <SerialUSB.h>

0 commit comments

Comments
 (0)