File tree 3 files changed +6
-3
lines changed
libraries/Arduino_FreeRTOS/src/portable/FSP
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
12
12
portenta_c33.build.float-abi=-mfloat-abi=hard
13
13
14
14
portenta_c33.build.board=PORTENTA_C33
15
- portenta_c33.build.defines=-DF_CPU=200000000
15
+ portenta_c33.build.defines=-DF_CPU=200000000 -DPROVIDE_FREERTOS_HOOK
16
16
portenta_c33.vid.0=0x2341
17
17
portenta_c33.pid.0=0x0068
18
18
portenta_c33.vid.1=0x2341
Original file line number Diff line number Diff line change @@ -112,8 +112,10 @@ void arduino_main(void)
112
112
Serial.begin (115200 );
113
113
#endif
114
114
startAgt ();
115
- start_freertos_on_header_inclusion ();
116
115
setup ();
116
+ #ifdef PROVIDE_FREERTOS_HOOK
117
+ start_freertos_on_header_inclusion ();
118
+ #endif
117
119
while (1 )
118
120
{
119
121
loop ();
Original file line number Diff line number Diff line change @@ -225,8 +225,8 @@ static void prvTaskExitError(void);
225
225
226
226
#endif
227
227
228
+ #ifdef PROVIDE_FREERTOS_HOOK
228
229
void loop_thread_func (void * arg ) {
229
- setup ();
230
230
while (1 )
231
231
{
232
232
loop ();
@@ -246,6 +246,7 @@ void start_freertos_on_header_inclusion() {
246
246
247
247
vTaskStartScheduler ();
248
248
}
249
+ #endif
249
250
250
251
/* Arduino specific overrides */
251
252
void delay (uint32_t ms ) {
You can’t perform that action at this time.
0 commit comments