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

Method blockErase32K

SPIFlash.cpp:278–284  ·  view source on GitHub ↗

erase a 32Kbyte block

Source from the content-addressed store, hash-verified

276
277/// erase a 32Kbyte block
278void SPIFlash::blockErase32K(uint32_t addr) {
279 command(SPIFLASH_BLOCKERASE_32K, true); // Block Erase
280 SPI.transfer(addr >> 16);
281 SPI.transfer(addr >> 8);
282 SPI.transfer(addr);
283 unselect();
284}
285
286/// erase a 64Kbyte block
287void SPIFlash::blockErase64K(uint32_t addr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected