Skip to content

Commit

Permalink
freertos: declare start_freertos_on_header_inclusion only if required
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Dec 12, 2024
1 parent acb578e commit b83fd20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/Arduino_FreeRTOS/src/portable/FSP/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ static void prvTaskExitError(void);

#endif

#ifdef PROVIDE_FREERTOS_HOOK
void loop_thread_func(void* arg) {
while (1)
{
Expand All @@ -245,6 +246,7 @@ void start_freertos_on_header_inclusion() {

vTaskStartScheduler();
}
#endif

/* Arduino specific overrides */
void delay(uint32_t ms) {
Expand Down

0 comments on commit b83fd20

Please sign in to comment.