Skip to content

Commit d13227c

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 4e73636 commit d13227c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cores/arduino/Arduino.h

Lines changed: 5 additions & 0 deletions
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)