software/libbase/spiflash: rename CHIP_ERASE_CMD to CE_CMD (for consistency)

This commit is contained in:
Florent Kermarrec 2019-11-08 13:13:54 +01:00
parent 7fb9cfeb64
commit 4a12a92d62
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
#define WRDI_CMD 0x04
#define RDSR_CMD 0x05
#define WREN_CMD 0x06
#define CHIP_ERASE_CMD 0xc7
#define CE_CMD 0xc7
#define SE_CMD 0xd8
#define BITBANG_CLK (1 << 1)
@ -99,7 +99,7 @@ void erase_flash(void)
flash_write_byte(WREN_CMD);
spiflash_bitbang_write(BITBANG_CS_N);
flash_write_byte(CHIP_ERASE_CMD);
flash_write_byte(CE_CMD);
spiflash_bitbang_write(BITBANG_CS_N);
wait_for_device_ready();