mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-21 00:48:14 +00:00
feat(openthread): support alloc nat64 session from psram
This commit is contained in:
@@ -204,3 +204,13 @@ esp_err_t esp_openthread_platform_process(otInstance *instance, const esp_openth
|
||||
}
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
uint32_t esp_openthread_get_alloc_caps(void)
|
||||
{
|
||||
return
|
||||
#if CONFIG_OPENTHREAD_PLATFORM_MALLOC_CAP_SPIRAM
|
||||
(MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
|
||||
#else
|
||||
(MALLOC_CAP_DEFAULT | MALLOC_CAP_8BIT);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user