Change region type name

This commit is contained in:
Rasmus Melchior Jacobsen
2023-03-25 13:39:10 +01:00
parent 47d5f127bb
commit 73ccc04231
4 changed files with 20 additions and 15 deletions

View File

@ -9,8 +9,8 @@ use super::FlashRegion;
use crate::flash::Error;
use crate::pac;
pub(crate) const MAX_WRITE_SIZE: usize = super::MAINC::WRITE_SIZE;
pub(crate) const MAX_ERASE_SIZE: usize = super::MAINC::ERASE_SIZE;
pub(crate) const MAX_WRITE_SIZE: usize = super::BANK1_REGION3::WRITE_SIZE;
pub(crate) const MAX_ERASE_SIZE: usize = super::BANK1_REGION3::ERASE_SIZE;
pub(crate) unsafe fn lock() {
pac::FLASH.cr().modify(|w| w.set_lock(true));