feat(openthread): support alloc nat64 session from psram

This commit is contained in:
zwx
2024-09-09 20:38:29 +08:00
committed by BOT
parent bb24084db4
commit 98bd2ef93c
4 changed files with 55 additions and 7 deletions

View File

@@ -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
}