mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-29 18:28:24 +02:00
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
This commit is contained in:
committed by
Euripedes Rocha
parent
23e5c5a02c
commit
fcd548daab
@ -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)
|
||||
|
Reference in New Issue
Block a user