diff --git a/include/FreeRTOS.h b/include/FreeRTOS.h index be6595eb7..4b59512c9 100644 --- a/include/FreeRTOS.h +++ b/include/FreeRTOS.h @@ -624,7 +624,7 @@ #ifndef traceSTARTING_SCHEDULER /* Called after all idle tasks and timer task (if enabled) have been created - * succesfully, just before the scheduler is started. */ + * successfully, just before the scheduler is started. */ #define traceSTARTING_SCHEDULER( xIdleTaskHandles ) #endif diff --git a/tasks.c b/tasks.c index 16ed290f4..f8740257c 100644 --- a/tasks.c +++ b/tasks.c @@ -3732,11 +3732,11 @@ void vTaskStartScheduler( void ) traceTASK_SWITCHED_IN(); + traceSTARTING_SCHEDULER( xIdleTaskHandles ); + /* Setting up the timer tick is hardware specific and thus in the * portable interface. */ - traceSTARTING_SCHEDULER( xIdleTaskHandles ); - /* The return value for xPortStartScheduler is not required * hence using a void datatype. */ ( void ) xPortStartScheduler();