detect the scheduler is running
A simple question. I have some pre-rtos initialization which needs to occur, but this function could be called after the scheduler is invoked. In this case, I need to detect the scheduler is running and shut down some tasks. Is there an api to indicate the scheduler is running?
detect the scheduler is running
http://www.freertos.org/a00021.html#xTaskGetSchedulerState
detect the scheduler is running
Set a flag to false
Do some initialization
Set flag to true
Start FreeRTOS
Test flag…..