mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-04 11:55:21 +02: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:
@@ -26,12 +26,6 @@ typedef enum {
|
||||
PSRAM_CACHE_MAX,
|
||||
} psram_cache_mode_t;
|
||||
|
||||
typedef enum {
|
||||
PSRAM_VOLT_3V3 = 0,
|
||||
PSRAM_VOLT_1V8 = 1,
|
||||
PSRAM_VOLT_MAX,
|
||||
} psram_volt_t;
|
||||
|
||||
typedef enum {
|
||||
PSRAM_SIZE_32MBITS = 0,
|
||||
PSRAM_SIZE_64MBITS = 1,
|
||||
@@ -52,14 +46,6 @@ typedef enum {
|
||||
PSRAM_VADDR_MODE_EVENODD, ///< App and pro CPU share external RAM caches: pro CPU does even 32yte ranges, app does odd ones.
|
||||
} psram_vaddr_mode_t;
|
||||
|
||||
/**
|
||||
* @brief get psram voltage
|
||||
* @return
|
||||
* - PSRAM_VOLT_MAX if psram not enabled or not valid.
|
||||
* - PSRAM voltage
|
||||
*/
|
||||
psram_volt_t psram_get_volt();
|
||||
|
||||
/**
|
||||
* @brief get psram size
|
||||
* @return
|
||||
|
||||
Reference in New Issue
Block a user