feat(spi_flash): Support configurable tSUS in flash suspend
This commit is contained in:
@@ -52,8 +52,9 @@ typedef struct {
|
||||
uint32_t slicer_flags; /// Slicer flags for configuring how to slice data correctly while reading or writing.
|
||||
#define SPI_FLASH_HOST_CONTEXT_SLICER_FLAG_DTR BIT(0) ///< Slice data according to DTR mode, the address and length must be even (A0=0).
|
||||
int freq_mhz; /// Flash clock frequency.
|
||||
uint8_t tsus_val; ///< Tsus value of suspend (us)
|
||||
} spi_flash_hal_context_t;
|
||||
ESP_STATIC_ASSERT(sizeof(spi_flash_hal_context_t) == 44, "size of spi_flash_hal_context_t incorrect. Please check data compatibility with the ROM");
|
||||
ESP_STATIC_ASSERT(sizeof(spi_flash_hal_context_t) == 48, "size of spi_flash_hal_context_t incorrect. Please check data compatibility with the ROM");
|
||||
|
||||
/// This struct provide MSPI Flash necessary timing related config, should be consistent with that in union in `spi_flash_hal_config_t`.
|
||||
typedef struct {
|
||||
@@ -85,6 +86,7 @@ typedef struct {
|
||||
esp_flash_io_mode_t default_io_mode; ///< Default flash io mode.
|
||||
int freq_mhz; ///< SPI flash clock speed (MHZ).
|
||||
int clock_src_freq; ///< SPI flash clock source (MHZ).
|
||||
uint8_t tsus_val; ///< Tsus value of suspend (us)
|
||||
} spi_flash_hal_config_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user