File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,6 @@ uint32_t micros();
40
40
#define delayMicroseconds (x ) wait_us(x)
41
41
#endif // IOA_USE_MBED
42
42
43
- /* *
44
- * the definition of an interrupt handler function, to be called back when an interrupt occurs.
45
- */
46
- typedef void (*RawIntHandler)();
47
-
48
43
/* *
49
44
* Definition of a function to be called back when an interrupt is detected, marshalled by task manager into a task.
50
45
* The pin that caused the interrupt is passed in the parameter on a best efforts basis.
Original file line number Diff line number Diff line change @@ -371,4 +371,12 @@ namespace tm_internal {
371
371
#endif // _has_include
372
372
#endif // GCC>=5 and !TM_ALLOW_CAPTURED_LAMBDA
373
373
374
+ #ifdef ESP32
375
+ #define RawIntHandler std::function<void (void )>
376
+ #elif ARDUINO_ARCH_STM32
377
+ #define RawIntHandler callback_function_t
378
+ #else
379
+ typedef void (*RawIntHandler)();
380
+ #endif // RAW INT checks
381
+
374
382
#endif // TASKMANGERIO_PLATFORMDETERMINATION_H
You can’t perform that action at this time.
0 commit comments