Skip to content

Commit 7aa4f3e

Browse files
committed
Add all known Arduino-mbed targets to TaskPlatformDeps.h.
This should make sure it compiles without forcing -DARDUINO_ARDUINO_NANO33BLE on boards that are using Arduino-mbed but are not Nano33BLE. For unknown Arduino-mbed-based boards one can use -DTMIOA_FORCE_ARDUINO_MBED to force enable Arduino-mbed support.
1 parent 0faf684 commit 7aa4f3e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/TaskPlatformDeps.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@ class TimerTask;
1616
#endif
1717

1818
// check if this is Arduino mbed or regular mbed.
19-
#if defined(ARDUINO_ARDUINO_NANO33BLE)
19+
// list of devices is pulled from https://github.com/arduino/ArduinoCore-mbed/blob/master/full.variables
20+
// set TMIOA_FORCE_ARDUINO_MBED to force IoAbstraction to use Arduino-mbed mode.
21+
#if defined(ARDUINO_NANO_RP2040_CONNECT) || \
22+
defined(ARDUINO_ARDUINO_NANO33BLE) || \
23+
defined(ARDUINO_RASPBERRY_PI_PICO) || \
24+
defined(ARDUINO_PORTENTA_H7_M7) || \
25+
defined(ARDUINO_PORTENTA_H7_M4) || \
26+
defined(ARDUINO_EDGE_CONTROL) || \
27+
defined(ARDUINO_NICLA) || \
28+
defined(ARDUINO_NICLA_VISION) || \
29+
defined(TMIOA_FORCE_ARDUINO_MBED)
2030
# define IOA_USE_ARDUINO
2131
# define ARDUINO_MBED_MODE
2232
# include "Arduino.h"

0 commit comments

Comments
 (0)