mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
feat(mmu): configurable page size s31 support
This commit is contained in:
@@ -436,6 +436,10 @@ esp_err_t esp_psram_init(void)
|
||||
ret = esp_psram_impl_get_available_size(&psram_available_size);
|
||||
assert(ret == ESP_OK);
|
||||
|
||||
#if SOC_MMU_PER_EXT_MEM_TARGET
|
||||
//set PSRAM dedicated MMU
|
||||
mmu_ll_set_page_size(1, CONFIG_MMU_PAGE_SIZE);
|
||||
#endif
|
||||
/**
|
||||
* `start_page` is the psram physical address in MMU page size.
|
||||
* MMU page size on ESP32S2 is 64KB
|
||||
|
||||
Reference in New Issue
Block a user