esp_psram: return error when fail to detect oct psram

This commit is contained in:
Armando
2022-11-10 19:46:24 +08:00
parent 1baa8f81cb
commit bf6ca71630
5 changed files with 14 additions and 8 deletions
+3 -2
View File
@@ -52,8 +52,9 @@ esp_err_t esp_psram_impl_get_available_size(uint32_t *out_size_bytes);
*
* @param vaddrmode Mode the psram cache works in.
* @return
* - ESP_OK: On success,
* - ESP_ERR_INVALID_STATE: On esp32, when VSPI peripheral is needed but cannot be claimed.
* - ESP_OK: On success
* - ESP_ERR_NOT_SUPPORTED: PSRAM ID / vendor ID check fail
* - ESP_ERR_INVALID_STATE: On esp32, when VSPI peripheral is needed but cannot be claimed
*/
esp_err_t esp_psram_impl_enable(psram_vaddr_mode_t vaddrmode);