mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-20 16:25:34 +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
@@ -18,6 +18,7 @@
|
||||
Suitable for use with spi_flash_hal_common_command static function.
|
||||
*/
|
||||
#define CMD_RDID 0x9F
|
||||
#define CMD_RDUID 0x4B /* Read the flash unique ID*/
|
||||
#define CMD_WRSR 0x01
|
||||
#define SR_WIP (1<<0) /* Status register write-in-progress bit */
|
||||
#define SR_WREN (1<<1) /* Status register write enable bit */
|
||||
|
Reference in New Issue
Block a user