Function spiflash_erase_sector

Source
pub unsafe fn spiflash_erase_sector(sector_number: u32) -> Result<(), i32>
Expand description

Low-level SPI NOR Flash erase

ยงSafety

The sector_number * sector_size should not exceeds the size of flash.