roujesky wrote on Wednesday, May 18, 2011:
Is it ok to do this in vApplicationIdleHook?
xSemaphoreTake(xSemaphore, portMAX_DELAY);
++ulIdleCycleCount;
xSemaphoreGive(xSemaphore);
I have another task which runs every second, prints the value of ulIdleCycleCount and then zeros it out. Before I do this, it looks like about every 5 seconds, it does not get zero’d out, but still gets printed….
I know you cant delay in the idle task……