kopia lustrzana https://github.com/espressif/esp-idf
esp_common: move freertos hooks
rodzic
840e2c0e50
commit
0e0914476c
|
@ -10,8 +10,7 @@ if(BOOTLOADER_BUILD)
|
|||
else()
|
||||
# Regular app build
|
||||
list(APPEND srcs "src/esp_err.c"
|
||||
"src/esp_err_to_name.c"
|
||||
"src/freertos_hooks.c")
|
||||
"src/esp_err_to_name.c")
|
||||
|
||||
# Note: esp_ipc, esp_pm added as a public requirement to keep compatibility as to be located here.
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
|
|
|
@ -7,11 +7,6 @@ entries:
|
|||
if PM_SLP_IRAM_OPT = y && IDF_TARGET_ESP32 = n:
|
||||
pm_impl:periph_inform_out_light_sleep_overhead (noflash)
|
||||
|
||||
[mapping:esp_common_pm]
|
||||
archive: libesp_common.a
|
||||
entries:
|
||||
if PM_RTOS_IDLE_OPT = y:
|
||||
freertos_hooks:esp_vApplicationIdleHook (noflash)
|
||||
[mapping:esp_hw_support_pm]
|
||||
archive: libesp_hw_support.a
|
||||
entries:
|
||||
|
@ -21,6 +16,8 @@ entries:
|
|||
[mapping:esp_system_pm]
|
||||
archive: libesp_system.a
|
||||
entries:
|
||||
if PM_RTOS_IDLE_OPT = y:
|
||||
freertos_hooks:esp_vApplicationIdleHook (noflash)
|
||||
if PM_SLP_IRAM_OPT = y:
|
||||
sleep_modes:esp_light_sleep_start (noflash)
|
||||
sleep_modes:esp_sleep_enable_timer_wakeup (noflash)
|
||||
|
|
|
@ -15,7 +15,8 @@ set(srcs "intr_alloc.c"
|
|||
"sleep_modes.c"
|
||||
"task_wdt.c"
|
||||
"int_wdt.c"
|
||||
"stack_check.c")
|
||||
"stack_check.c"
|
||||
"freertos_hooks.c")
|
||||
|
||||
if(NOT (${target} STREQUAL "esp32c3") )
|
||||
list(APPEND srcs "dbg_stubs.c")
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
#define __ESP_FREERTOS_HOOKS_H__
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "freertos/portmacro.h"
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
#ifdef __cplusplus
|
Ładowanie…
Reference in New Issue