nobody wrote on Wednesday, February 21, 2007:
Initializing and using LCD requires a lot of software delays, this is inefficient. Better way is to replace every SoftwareDelay() with vTaskDelay(t) or vTaskDelayUntil(t).
However vTaskDelay() can only be used when the scheduler is running.
I want to write a function Delay() such that, when it’s called when scheduler is not running, it uses software delay, otherwise it uses vTaskDelay().
If [scheduler is NOT running]
How can I know scheduler is running or not? The variable "xSchedulerRunning" is declared in task.c, so not accessible. Should I take xSchedulerRunning out and declare in task.h, or is there a cleaner way?