Add MAX_ERASE_SIZE const in build script, and use it in flash-wide implementation of embedded-storage traits

This commit is contained in:
Mathias
2023-04-18 15:49:33 +02:00
parent 1c68c62ebd
commit 095f5ef279
3 changed files with 12 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ mod common;
pub use common::*;
pub use crate::_generated::flash_regions::*;
pub use crate::_generated::MAX_ERASE_SIZE;
pub use crate::pac::{FLASH_BASE, FLASH_SIZE, WRITE_SIZE};
#[derive(Debug)]