From df2cc7e94f91a15a41c36935875f6f9be42cdabd Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Fri, 18 Feb 2022 00:05:57 -0500 Subject: WIP accelerometer logging to flash --- watch-library/shared/driver/spiflash.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'watch-library/shared/driver') diff --git a/watch-library/shared/driver/spiflash.h b/watch-library/shared/driver/spiflash.h index 0d8641a7..9b1d00f5 100644 --- a/watch-library/shared/driver/spiflash.h +++ b/watch-library/shared/driver/spiflash.h @@ -33,6 +33,8 @@ #define CMD_FAST_READ_DATA 0x0B #define CMD_SECTOR_ERASE 0x20 // #define CMD_SECTOR_ERASE CMD_READ_JEDEC_ID +#define CMD_CHIP_ERASE 0xC7 +// #define CMD_CHIP_ERASE CMD_READ_JEDEC_ID #define CMD_DISABLE_WRITE 0x04 #define CMD_ENABLE_WRITE 0x06 #define CMD_PAGE_PROGRAM 0x02 -- cgit v1.2.3