erase_sector_blocking -> blocking_erase_sector

This commit is contained in:
Rasmus Melchior Jacobsen
2023-05-25 23:13:20 +02:00
parent 4478d8322b
commit 74104aafda
5 changed files with 8 additions and 4 deletions

View File

@ -49,7 +49,7 @@ pub(crate) unsafe fn blocking_write(start_address: u32, buf: &[u8; WRITE_SIZE])
wait_ready_blocking()
}
pub(crate) unsafe fn erase_sector_blocking(sector: &FlashSector) -> Result<(), Error> {
pub(crate) unsafe fn blocking_erase_sector(sector: &FlashSector) -> Result<(), Error> {
pac::FLASH.cr().modify(|w| {
w.set_per(true);
});