Skip to content

Commit 0a481ef

Browse files
authored
Merge pull request #38 from dogtopus/add-all-known-arduino-mbed-targets
Add all known Arduino-mbed targets to TaskPlatformDeps.h.
2 parents 0faf684 + 7aa4f3e commit 0a481ef

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)