mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
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:

committed by
Cao Senmiao

parent
31ba414c4d
commit
78a2dbe42a
@@ -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
|
||||
|
Reference in New Issue
Block a user