esp_flash: fix the quad issue for some GD flash chips

The GD flash with product ID 40H, is already used in Wrover-nosufix modules.
This commit is contained in:
Michael (XIAO Xufeng)
2019-09-10 00:56:46 +08:00
parent 337b1df430
commit b5d04a21fb
9 changed files with 180 additions and 17 deletions

View File

@@ -65,6 +65,7 @@ struct esp_flash_t {
esp_flash_io_mode_t read_mode; ///< Configured SPI flash read mode. Set before ``esp_flash_init`` is called.
uint32_t size; ///< Size of SPI flash in bytes. If 0, size will be detected during initialisation.
uint32_t chip_id; ///< Detected chip id.
};