From fcd548daabf772e2eaf1472fb1b5243c1061fcf7 Mon Sep 17 00:00:00 2001 From: Darian Leung Date: Thu, 17 Feb 2022 16:40:52 +0800 Subject: [PATCH] freertos: Remove legacy hooks This commit refactors the legacy hooks as follows: - Removed CONFIG_FREERTOS_LEGACY_HOOKS - FreeRTOS hooks are now enabled via: - CONFIG_FREERTOS_USE_IDLE_HOOK - CONFIG_FREERTOS_USE_TICK_HOOK - Update IDF hooks documentation --- .../mqtt/host_test/mocks/include/freertos/portmacro.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/components/mqtt/host_test/mocks/include/freertos/portmacro.h b/components/mqtt/host_test/mocks/include/freertos/portmacro.h index a68d3c4..23c3d6e 100644 --- a/components/mqtt/host_test/mocks/include/freertos/portmacro.h +++ b/components/mqtt/host_test/mocks/include/freertos/portmacro.h @@ -156,14 +156,6 @@ extern void vPortClearInterruptMask(int); extern void vPortEnterCritical(void); extern void vPortExitCritical(void); -extern void esp_vApplicationIdleHook(void); -extern void esp_vApplicationTickHook(void); - -#ifndef CONFIG_FREERTOS_LEGACY_HOOKS -#define vApplicationIdleHook esp_vApplicationIdleHook -#define vApplicationTickHook esp_vApplicationTickHook -#endif /* !CONFIG_FREERTOS_LEGACY_HOOKS */ - /* Task function macros as described on the FreeRTOS.org WEB site. */ #define portTASK_FUNCTION_PROTO(vFunction, pvParameters) void vFunction(void* pvParameters) #define portTASK_FUNCTION(vFunction, pvParameters) void vFunction(void* pvParameters)