mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-24 17:27:21 +00:00
bugfix(psram): fix psram driver
1. remove use EID to distinguish psram voltage 2. 1V8 64Mbit psram and 3V3 64Mbit psram use the same psram driver(standard spi interface) 3. set cs hold time register as 1
This commit is contained in:
@@ -104,23 +104,6 @@ void IRAM_ATTR esp_spiram_init_cache()
|
||||
#endif
|
||||
}
|
||||
|
||||
esp_spiram_volt_t esp_spiram_get_chip_volt()
|
||||
{
|
||||
if (!spiram_inited) {
|
||||
ESP_LOGE(TAG, "SPI RAM not initialized");
|
||||
return ESP_SPIRAM_VOLT_INVALID;
|
||||
}
|
||||
psram_volt_t volt = psram_get_volt();
|
||||
switch (volt) {
|
||||
case PSRAM_VOLT_1V8:
|
||||
return ESP_SPIRAM_VOLT_1V8;
|
||||
case PSRAM_VOLT_3V3:
|
||||
return ESP_SPIRAM_VOLT_3V3;
|
||||
default:
|
||||
return ESP_SPIRAM_VOLT_INVALID;
|
||||
}
|
||||
}
|
||||
|
||||
esp_spiram_size_t esp_spiram_get_chip_size()
|
||||
{
|
||||
if (!spiram_inited) {
|
||||
|
Reference in New Issue
Block a user