mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
spi_flash:modify nvs reading writing issue on esp32s3
This commit is contained in:
parent
ee7c66cc82
commit
0b7caf96a9
@ -133,7 +133,6 @@ static inline void spimem_flash_ll_resume(spi_mem_dev_t *dev)
|
||||
*/
|
||||
static inline void spimem_flash_ll_auto_suspend_init(spi_mem_dev_t *dev, bool auto_sus)
|
||||
{
|
||||
dev->user.usr_dummy_idle = 1;// MUST SET 1, to avoid missing Resume
|
||||
dev->flash_sus_ctrl.flash_pes_en = auto_sus; // enable Flash Auto-Suspend.
|
||||
}
|
||||
|
||||
|
@ -22,10 +22,10 @@ typedef struct spi_flash_chip_t spi_flash_chip_t;
|
||||
|
||||
/** Timeout configurations for flash operations, all in us */
|
||||
typedef struct {
|
||||
uint32_t idle_timeout; ///< Default timeout for other commands to be sent by host and get done by flash
|
||||
uint32_t chip_erase_timeout; ///< Timeout for chip erase operation
|
||||
uint32_t block_erase_timeout; ///< Timeout for block erase operation
|
||||
uint32_t sector_erase_timeout; ///< Timeout for sector erase operation
|
||||
uint32_t idle_timeout; ///< Default timeout for other commands to be sent by host and get done by flash
|
||||
uint32_t page_program_timeout; ///< Timeout for page program operation
|
||||
} flash_chip_op_timeout_t;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user