erase a 4Kbyte block
| 267 | |
| 268 | /// erase a 4Kbyte block |
| 269 | void 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 |
| 278 | void SPIFlash::blockErase32K(uint32_t addr) { |
nothing calls this directly
no outgoing calls
no test coverage detected