Skip to content

Commit f70bbb8

Browse files
committed
#43 support for earlephilhower pico core.
1 parent 8b32f45 commit f70bbb8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/TaskPlatformDeps.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99

1010
class TimerTask;
1111

12-
#if defined(__MBED__) || defined(ARDUINO_ARDUINO_NANO33BLE)
12+
// when not on mbed, we need to load Arduino.h to get the right defines for some boards.
13+
#ifndef __MBED__
14+
#include <Arduino.h>
15+
#endif
16+
17+
#if defined(__MBED__) && !defined(ARDUINO_PICO_REVISION)
1318

1419
#if defined(TM_ENABLE_CAPTURED_LAMBDAS)
1520
#define TM_ALLOW_CAPTURED_LAMBDA
@@ -95,15 +100,15 @@ namespace tm_internal {
95100
*pPtr = newValue;
96101
}
97102
}
98-
#elif defined(ESP8266) || defined(ESP32)
103+
#elif defined(ESP8266) || defined(ESP32) || defined(ARDUINO_PICO_REVISION)
99104
#include "Arduino.h"
100105
typedef uint8_t pintype_t;
101106
# define IOA_USE_ARDUINO
102107
#if defined(TM_ENABLE_CAPTURED_LAMBDAS)
103108
# define TM_ALLOW_CAPTURED_LAMBDA
104109
#endif
105110

106-
#if defined(ESP8266)
111+
#if defined(ESP8266) || defined(ARDUINO_PICO_REVISION)
107112
#include <atomic>
108113
namespace tm_internal {
109114

0 commit comments

Comments
 (0)