feat(openthread): use heap_caps_calloc_prefer for messagepool

This commit is contained in:
Tan Yan Quan
2026-03-19 15:37:10 +08:00
parent 43e729b067
commit 7834cfd5e1
5 changed files with 29 additions and 15 deletions
+4 -4
View File
@@ -71,7 +71,7 @@ if(CONFIG_OPENTHREAD_FTD OR CONFIG_OPENTHREAD_MTD)
esp_driver_usb_serial_jtag
LDFRAGMENTS linker.lf
PRIV_REQUIRES console esp_coex esp_event esp_partition esp_timer
ieee802154 mbedtls nvs_flash)
ieee802154 mbedtls nvs_flash esp_psram)
elseif(CONFIG_OPENTHREAD_RADIO)
# RCP mode uses explicit source list from srcs_radio.cmake
idf_component_register(SRCS ${rcp_srcs}
@@ -81,7 +81,7 @@ elseif(CONFIG_OPENTHREAD_RADIO)
esp_driver_usb_serial_jtag
LDFRAGMENTS linker.lf
PRIV_REQUIRES console esp_coex esp_event esp_partition esp_timer
ieee802154 mbedtls nvs_flash)
ieee802154 mbedtls nvs_flash esp_psram)
elseif(CONFIG_OPENTHREAD_SPINEL_ONLY)
# SPINEL_ONLY mode uses explicit source list from srcs_spinel.cmake
idf_component_register(SRCS ${spinel_srcs}
@@ -91,7 +91,7 @@ elseif(CONFIG_OPENTHREAD_SPINEL_ONLY)
esp_driver_usb_serial_jtag
LDFRAGMENTS linker.lf
PRIV_REQUIRES console esp_coex esp_event esp_partition esp_timer
ieee802154 mbedtls nvs_flash)
ieee802154 mbedtls nvs_flash esp_psram)
else()
# This is not supposed to happen, but in older versions of IDF components couldn't be selectively
# enabled based on KConfig options so some examples just included openthread for all configs.
@@ -101,7 +101,7 @@ else()
esp_driver_usb_serial_jtag
LDFRAGMENTS linker.lf
PRIV_REQUIRES console esp_coex esp_event esp_partition esp_timer
ieee802154 mbedtls nvs_flash)
ieee802154 mbedtls nvs_flash esp_psram)
endif()
if(CONFIG_OPENTHREAD_RADIO_TREL)