MCPcopy Create free account
hub / github.com/LowPowerLab/SPIFlash / blockErase4K

Method blockErase4K

SPIFlash.cpp:269–275  ·  view source on GitHub ↗

erase a 4Kbyte block

Source from the content-addressed store, hash-verified

267
268/// erase a 4Kbyte block
269void SPIFlash::blockErase4K(uint32_t addr) {
270 command(SPIFLASH_BLOCKERASE_4K, true); // Block Erase
271 SPI.transfer(addr >> 16);
272 SPI.transfer(addr >> 8);
273 SPI.transfer(addr);
274 unselect();
275}
276
277/// erase a 32Kbyte block
278void SPIFlash::blockErase32K(uint32_t addr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected