mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 09:37:00 +08:00
feat(freertos): Link FreeRTOS idle task and its hook function to IRAM
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user