feat(openthread): support alloc nat64 session from psram

This commit is contained in:
zwx
2024-09-09 20:38:29 +08:00
committed by Xu Si Yu
parent 9b270c4c7d
commit 7a044c0f81
4 changed files with 55 additions and 7 deletions
@@ -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
}