aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/bootloader/nrf
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-09-02 06:26:08 +0000
committerGitHub <[email protected]>2022-09-02 06:26:08 +0000
commit8b464d2668657284527693fbf9cc348766a00758 (patch)
treed2f9a27e103cab8e02b42c84201d37bf8a02e1b3 /examples/boot/bootloader/nrf
parent835b69456d6a270e6d5c869da46c0df30fe54254 (diff)
parent3ca73144765411994759194a2279b567f4508be5 (diff)
Merge #935
935: Remove generic const expressions from embassy-boot r=lulf a=lulf * Remove the need for generic const expressions and use buffers provided in the flash config. * Extend embedded-storage traits to simplify generics. * Document all public APIs * Add toplevel README * Expose AlignedBuffer type for convenience. * Update examples Co-authored-by: Ulf Lilleengen <[email protected]>
Diffstat (limited to 'examples/boot/bootloader/nrf')
-rw-r--r--examples/boot/bootloader/nrf/src/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/boot/bootloader/nrf/src/main.rs b/examples/boot/bootloader/nrf/src/main.rs
index bc7e0755f..9031997c2 100644
--- a/examples/boot/bootloader/nrf/src/main.rs
+++ b/examples/boot/bootloader/nrf/src/main.rs
@@ -20,10 +20,8 @@ fn main() -> ! {
20 */ 20 */
21 21
22 let mut bl = BootLoader::default(); 22 let mut bl = BootLoader::default();
23 let start = bl.prepare(&mut SingleFlashProvider::new(&mut WatchdogFlash::start( 23 let start = bl.prepare(&mut SingleFlashConfig::new(&mut BootFlash::<_, 4096>::new(
24 Nvmc::new(p.NVMC), 24 &mut WatchdogFlash::start(Nvmc::new(p.NVMC), p.WDT, 5),
25 p.WDT,
26 5,
27 ))); 25 )));
28 unsafe { bl.load(start) } 26 unsafe { bl.load(start) }
29} 27}