File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
libraries/Arduino_FreeRTOS/src/portable/FSP Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ portenta_c33.build.fpu=-mfpu=fpv5-sp-d16
1212portenta_c33.build.float-abi=-mfloat-abi=hard
1313
1414portenta_c33.build.board=PORTENTA_C33
15- portenta_c33.build.defines=-DF_CPU=200000000
15+ portenta_c33.build.defines=-DF_CPU=200000000 -DPROVIDE_FREERTOS_HOOK
1616portenta_c33.vid.0=0x2341
1717portenta_c33.pid.0=0x0068
1818portenta_c33.vid.1=0x2341
Original file line number Diff line number Diff line change @@ -112,8 +112,10 @@ void arduino_main(void)
112112 Serial.begin (115200 );
113113#endif
114114 startAgt ();
115- start_freertos_on_header_inclusion ();
116115 setup ();
116+ #ifdef PROVIDE_FREERTOS_HOOK
117+ start_freertos_on_header_inclusion ();
118+ #endif
117119 while (1 )
118120 {
119121 loop ();
Original file line number Diff line number Diff line change @@ -225,8 +225,8 @@ static void prvTaskExitError(void);
225225
226226#endif
227227
228+ #ifdef PROVIDE_FREERTOS_HOOK
228229void loop_thread_func (void * arg ) {
229- setup ();
230230 while (1 )
231231 {
232232 loop ();
@@ -246,6 +246,7 @@ void start_freertos_on_header_inclusion() {
246246
247247 vTaskStartScheduler ();
248248}
249+ #endif
249250
250251/* Arduino specific overrides */
251252void delay (uint32_t ms ) {
You can’t perform that action at this time.
0 commit comments