implement error view which displays all error on the display
This commit was merged in pull request #48.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
pub struct MemoryRegion {
|
||||
offset: u32,
|
||||
size: usize,
|
||||
pub offset: u32,
|
||||
pub size: usize,
|
||||
}
|
||||
|
||||
impl MemoryRegion {
|
||||
@@ -15,13 +15,13 @@ impl MemoryRegion {
|
||||
}
|
||||
}
|
||||
|
||||
const MAX_FLASH: usize = 16 * 1024 * 1024;
|
||||
pub const MAX_FLASH: usize = 16 * 1024 * 1024;
|
||||
|
||||
const MAGIC_REGION: MemoryRegion = MemoryRegion::new(0, 4);
|
||||
pub const MAGIC_REGION: MemoryRegion = MemoryRegion::new(0, 4);
|
||||
|
||||
const SETTINGS_REGION: MemoryRegion = MemoryRegion::new(MAGIC_REGION.end() as u32, 1024);
|
||||
pub const SETTINGS_REGION: MemoryRegion = MemoryRegion::new(MAGIC_REGION.end() as u32, 1024);
|
||||
|
||||
const CARDSTORE_REGION: MemoryRegion = MemoryRegion::new(
|
||||
pub const CARDSTORE_REGION: MemoryRegion = MemoryRegion::new(
|
||||
SETTINGS_REGION.end() as u32,
|
||||
MAX_FLASH - SETTINGS_REGION.end(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user