can i put some code in idle task ?
hi :
I want to add seed watchdog code in idle task, does it bring other problem ?
vincent
can i put some code in idle task ?
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).
See http://www.freertos.org/RTOS-idle-task.html
Regards.
can i put some code in idle task ?
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 ?
vincent
can i put some code in idle task ?
Yes, that’s exactly what vApplicationIdleHook is there for.