kendryte-freertos-sdk
kendryte-freertos-sdk copied to clipboard
vApplicationIdleHook() cannot be overridden.
- [x ] BUG REPORT
The vApplicationIdleHook() is defined in freertos/lib/osentry.c as
void vApplicationIdleHook(void)
{
}
better code would be
#if ( configUSE_IDLE_HOOK == 1 )
void __attribute__((weak)) vApplicationIdleHook(void)
{
}
#endif /* configUSE_IDLE_HOOK */
as this would allow the application to implement the hook and it would not define the hook unless it is needed. I have tested this and it works well.