OS Actions in the idle task

mikehitekp wrote on Thursday, October 01, 2009:

I am wishing to use an idle task (having set configUSE_IDLE_HOOK and defined vApplicationIdleHook) to inspect an input register, and put some data onto a queue if appropriate. This could cause a task switch (to the task checking the queue).

Is this OK in the Idle task?

The xQueueSend has a 0 ticks to wait, so should never block.

davedoors wrote on Thursday, October 01, 2009:

What you suggest is fine.

mikehitekp wrote on Thursday, October 01, 2009:

Thanks Dave