can i put some code in idle task ?

vicui wrote on Wednesday, July 25, 2012:

hi :

I want to add seed watchdog code in idle task, does it bring other problem  ?


rtel wrote on Wednesday, July 25, 2012:

Yes you can add code into the idle, but the code must never attempt to block (call a delay function, or call an API function with a block time specified).



vicui wrote on Thursday, July 26, 2012:

hi :

I set configUSE_IDLE_HOOK to 1 and define void vApplicationIdleHook( void ), then put my code in the functions , that’s all job I do  ?


jubajube wrote on Tuesday, July 31, 2012:

Yes, that’s exactly what vApplicationIdleHook is there for.