Skip to content

Commit 880138f

Browse files
facchinmsoburi
authored andcommitted
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 af46f9d commit 880138f

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
@@ -57,6 +57,11 @@ void noInterrupts(void);
5757

5858
int digitalPinToInterrupt(pin_size_t pin);
5959

60+
#define digitalPinToPort(x) (x)
61+
#define digitalPinToBitMask(x) (x)
62+
#define portOutputRegister(x) (x)
63+
#define portInputRegister(x) (x)
64+
6065
#include <variant.h>
6166
#ifdef __cplusplus
6267
#include <SerialUSB.h>

0 commit comments

Comments
 (0)