From a5f9a2505e1b424adc158cc17e8b2ffe252a0082 Mon Sep 17 00:00:00 2001 From: Darian Leung Date: Tue, 29 Aug 2023 00:42:37 +0800 Subject: [PATCH] refactor(freertos/idf): Remove application hook prototypes The following application hook protoypes are defined in task.h from FreeRTOS V10.4.0 onwwards and no longer need to be declared in tasks.c, thus have been removed: - vApplicationStackOverflowHook() - vApplicationTickHook() - vApplicationGetIdleTaskMemory() --- components/freertos/FreeRTOS-Kernel/tasks.c | 22 --------------------- 1 file changed, 22 deletions(-) diff --git a/components/freertos/FreeRTOS-Kernel/tasks.c b/components/freertos/FreeRTOS-Kernel/tasks.c index a5d4eb7cd0..da7bdab9de 100644 --- a/components/freertos/FreeRTOS-Kernel/tasks.c +++ b/components/freertos/FreeRTOS-Kernel/tasks.c @@ -504,28 +504,6 @@ PRIVILEGED_DATA static volatile BaseType_t xSwitchingContext[ configNUM_CORES ] /*-----------------------------------------------------------*/ -/* Callback function prototypes. --------------------------*/ -#if ( configCHECK_FOR_STACK_OVERFLOW > 0 ) - - extern void vApplicationStackOverflowHook( TaskHandle_t xTask, - char * pcTaskName ); - -#endif - -#if ( configUSE_TICK_HOOK > 0 ) - - extern void vApplicationTickHook( void ); /*lint !e526 Symbol not defined as it is an application callback. */ - -#endif - -#if ( configSUPPORT_STATIC_ALLOCATION == 1 ) - - extern void vApplicationGetIdleTaskMemory( StaticTask_t ** ppxIdleTaskTCBBuffer, - StackType_t ** ppxIdleTaskStackBuffer, - uint32_t * pulIdleTaskStackSize ); /*lint !e526 Symbol not defined as it is an application callback. */ - -#endif - /* File private functions. --------------------------------*/ /**