mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
feat(freertos): Cleanup tick/idle hook functionality
Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/500
This commit is contained in:
@ -344,15 +344,29 @@ BaseType_t xQueueGenericReceive(QueueHandle_t xQueue, void * const pvBuffer,
|
||||
return xQueueReceive(xQueue, pvBuffer, xTicksToWait);
|
||||
}
|
||||
|
||||
void vApplicationIdleHook(void)
|
||||
void esp_internal_idle_hook(void)
|
||||
{
|
||||
extern void pmIdleHook(void);
|
||||
extern void esp_task_wdt_reset(void);
|
||||
|
||||
pmIdleHook();
|
||||
esp_task_wdt_reset();
|
||||
pmIdleHook();
|
||||
}
|
||||
|
||||
#if configUSE_IDLE_HOOK == 1
|
||||
void __attribute__((weak)) vApplicationIdleHook(void)
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
#if configUSE_TICK_HOOK == 1
|
||||
void __attribute__((weak)) vApplicationTickHook(void)
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
uint32_t xPortGetTickRateHz(void)
|
||||
{
|
||||
return (uint32_t)configTICK_RATE_HZ;
|
||||
|
Reference in New Issue
Block a user