Ensure FlashRegion can only be created within this crate
This commit is contained in:
parent
627d7f66ef
commit
879c621394
2 changed files with 2 additions and 0 deletions
|
@ -206,6 +206,7 @@ fn main() {
|
|||
erase_size: #erase_size,
|
||||
write_size: #write_size,
|
||||
erase_value: #erase_value,
|
||||
_ensure_internal: (),
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ pub struct FlashRegion {
|
|||
pub erase_size: u32,
|
||||
pub write_size: u32,
|
||||
pub erase_value: u8,
|
||||
pub(crate) _ensure_internal: (),
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
|
|
Loading…
Reference in a new issue