2023-03-30 08:32:36 +02:00
|
|
|
#![allow(unused)]
|
|
|
|
|
|
|
|
use super::{Error, FlashRegion, FlashSector, FLASH_REGIONS, WRITE_SIZE};
|
|
|
|
|
2023-05-26 15:23:36 +02:00
|
|
|
pub const fn is_default_layout() -> bool {
|
|
|
|
true
|
|
|
|
}
|
2023-05-23 23:01:55 +02:00
|
|
|
|
2023-03-31 15:47:45 +02:00
|
|
|
pub const fn get_flash_regions() -> &'static [&'static FlashRegion] {
|
2023-03-30 08:32:36 +02:00
|
|
|
&FLASH_REGIONS
|
|
|
|
}
|
2023-03-30 06:01:56 +02:00
|
|
|
|
|
|
|
pub(crate) unsafe fn lock() {
|
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
pub(crate) unsafe fn unlock() {
|
|
|
|
unimplemented!();
|
|
|
|
}
|
2023-05-24 12:17:12 +02:00
|
|
|
pub(crate) unsafe fn enable_blocking_write() {
|
2023-03-30 06:01:56 +02:00
|
|
|
unimplemented!();
|
|
|
|
}
|
2023-05-24 12:17:12 +02:00
|
|
|
pub(crate) unsafe fn disable_blocking_write() {
|
2023-03-30 06:01:56 +02:00
|
|
|
unimplemented!();
|
|
|
|
}
|
2023-05-25 22:09:28 +02:00
|
|
|
pub(crate) unsafe fn blocking_write(_start_address: u32, _buf: &[u8; WRITE_SIZE]) -> Result<(), Error> {
|
2023-03-30 06:01:56 +02:00
|
|
|
unimplemented!();
|
|
|
|
}
|
2023-05-25 23:13:20 +02:00
|
|
|
pub(crate) unsafe fn blocking_erase_sector(_sector: &FlashSector) -> Result<(), Error> {
|
2023-03-30 06:01:56 +02:00
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
pub(crate) unsafe fn clear_all_err() {
|
|
|
|
unimplemented!();
|
|
|
|
}
|