Let Flash<Async/Blocking> be a thing
This commit is contained in:
@ -20,7 +20,7 @@ fn main() -> ! {
|
||||
*/
|
||||
|
||||
let mut bl: BootLoader<2048> = BootLoader::default();
|
||||
let layout = Flash::new_blocking_only(p.FLASH).into_blocking_regions();
|
||||
let layout = Flash::new_blocking(p.FLASH).into_blocking_regions();
|
||||
let mut flash = BootFlash::new(layout.bank1_region);
|
||||
let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash));
|
||||
core::mem::drop(flash);
|
||||
|
Reference in New Issue
Block a user