Change region type name
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user