Ensure flash module and FlashRegion trait is always defined

This commit is contained in:
Rasmus Melchior Jacobsen
2023-03-25 16:32:32 +01:00
parent bc69eb596e
commit e8fc7a66a3
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
pub trait FlashRegion {
const BASE: usize;
const SIZE: usize;
const ERASE_SIZE: usize;
const WRITE_SIZE: usize;
const ERASE_VALUE: u8;
}