spi_flash: add a new function to support read the unique id

Close https://github.com/espressif/esp-idf/pull/4255
This commit is contained in:
Cao Sen Miao
2020-11-27 19:09:40 +08:00
committed by Cao Senmiao
parent 31ba414c4d
commit 78a2dbe42a
11 changed files with 93 additions and 2 deletions

View File

@@ -188,6 +188,11 @@ struct spi_flash_chip_t {
/** Setup flash suspend configuration. */
esp_err_t (*sus_setup)(esp_flash_t *chip);
/**
* Read the chip unique ID.
*/
esp_err_t (*read_unique_id)(esp_flash_t *chip, uint64_t* flash_unique_id);
};
/* Pointer to an array of pointers to all known drivers for flash chips. This array is used