OS Actions in the idle task

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.

OS Actions in the idle task

What you suggest is fine.

OS Actions in the idle task

Thanks Dave