feat(freertos): Cleanup tick/idle hook functionality

Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/500
This commit is contained in:
Wu Jian Gang
2019-03-04 20:40:29 +08:00
committed by dongheng
parent d847d847e4
commit b6ea4eab21
7 changed files with 65 additions and 3 deletions

View File

@@ -22,6 +22,8 @@
#include "sdkconfig.h"
#ifdef CONFIG_FREERTOS_EXTENED_HOOKS
//We use just a static array here because it's not expected many components will need
//an idle or tick hook.
#define MAX_HOOKS CONFIG_FREERTOS_MAX_HOOK
@@ -158,3 +160,4 @@ void esp_deregister_freertos_tick_hook(esp_freertos_tick_cb_t old_tick_cb)
portEXIT_CRITICAL(&hooks_spinlock);
}
#endif /* CONFIG_FREERTOS_EXTENED_HOOKS */