Skip to content

Commit b83fd20

Browse files
committed
freertos: declare start_freertos_on_header_inclusion only if required
1 parent acb578e commit b83fd20

File tree

1 file changed

+2
-0
lines changed
  • libraries/Arduino_FreeRTOS/src/portable/FSP

1 file changed

+2
-0
lines changed

Diff for: libraries/Arduino_FreeRTOS/src/portable/FSP/port.c

+2
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ static void prvTaskExitError(void);
225225

226226
#endif
227227

228+
#ifdef PROVIDE_FREERTOS_HOOK
228229
void loop_thread_func(void* arg) {
229230
while (1)
230231
{
@@ -245,6 +246,7 @@ void start_freertos_on_header_inclusion() {
245246

246247
vTaskStartScheduler();
247248
}
249+
#endif
248250

249251
/* Arduino specific overrides */
250252
void delay(uint32_t ms) {

0 commit comments

Comments
 (0)