Align examples with bootloader changes

This commit is contained in:
Rasmus Melchior Jacobsen
2023-04-04 22:44:21 +02:00
parent a77ce1088d
commit 84bfe9b8c9
5 changed files with 11 additions and 10 deletions

View File

@ -27,9 +27,11 @@ fn main() -> ! {
wdt_config.run_during_sleep = true;
wdt_config.run_during_debug_halt = false;
let start = bl.prepare(&mut SingleFlashConfig::new(&mut BootFlash::<_, 4096>::new(
WatchdogFlash::start(Nvmc::new(p.NVMC), p.WDT, wdt_config),
)));
let start = bl.prepare(&mut SingleFlashConfig::new(&mut BootFlash::new(WatchdogFlash::start(
Nvmc::new(p.NVMC),
p.WDT,
wdt_config,
))));
unsafe { bl.load(start) }
}