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

Method blockErase64K

SPIFlash.cpp:287–293  ·  view source on GitHub ↗

erase a 64Kbyte block

Source from the content-addressed store, hash-verified

285
286/// erase a 64Kbyte block
287void SPIFlash::blockErase64K(uint32_t addr) {
288 command(SPIFLASH_BLOCKERASE_64K, true); // Block Erase
289 SPI.transfer(addr >> 16);
290 SPI.transfer(addr >> 8);
291 SPI.transfer(addr);
292 unselect();
293}
294
295void SPIFlash::sleep() {
296 command(SPIFLASH_SLEEP);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected