feat(freertos): Link FreeRTOS idle task and its hook function to IRAM

This commit is contained in:
dongheng
2019-03-06 10:42:08 +08:00
parent 6042355fad
commit ab3179efd7
5 changed files with 9 additions and 8 deletions

View File

@ -75,12 +75,12 @@ static uint32_t task_ms_to_tick_wrapper(uint32_t ms)
return (uint32_t)(ms / portTICK_RATE_MS);
}
static void task_suspend_all_wrapper(void)
static void IRAM_ATTR task_suspend_all_wrapper(void)
{
vTaskSuspendAll();
}
static void task_resume_all_wrapper(void)
static void IRAM_ATTR task_resume_all_wrapper(void)
{
xTaskResumeAll();
}

View File

@ -14,6 +14,7 @@
#include <stdint.h>
#include "esp_attr.h"
#include "esp_log.h"
#include "esp_libc.h"
#include "esp_wifi_osi.h"
@ -78,7 +79,7 @@ esp_err_t esp_task_wdt_init(void)
* @brief Reset(Feed) the Task Watchdog Timer (TWDT) on behalf of the currently
* running task
*/
void esp_task_wdt_reset(void)
void IRAM_ATTR esp_task_wdt_reset(void)
{
WDT_FEED();
}