spiFlash: Add --bulk-erase command line option

Adds a --bulk-erase command line option for bulk erasure of SPI flash.
This commit is contained in:
Rod Whitby
2022-11-06 18:56:07 +10:30
parent d782877d0a
commit de5aff7a96
14 changed files with 103 additions and 3 deletions
+2
View File
@@ -40,6 +40,8 @@ class CologneChip: public Device, SPIInterface {
printError("protect flash not supported"); return false;}
virtual bool unprotect_flash() override {
printError("unprotect flash not supported"); return false;}
virtual bool bulk_erase_flash() override {
printError("bulk erase flash not supported"); return false;}
void program(unsigned int offset, bool unprotect_flash) override;
int idCode() override {return 0;}