diff options
| author | Ulf Lilleengen <[email protected]> | 2022-08-30 13:07:35 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-09-02 08:25:36 +0200 |
| commit | 3ca73144765411994759194a2279b567f4508be5 (patch) | |
| tree | 7c2466e14eb91321d35f831384c633f9936e8977 /examples/boot/application/nrf/src | |
| parent | 7542505cf903930520773f5b6b5ff239b78a8f9c (diff) | |
Remove generic const expressions from embassy-boot
* 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
Diffstat (limited to 'examples/boot/application/nrf/src')
| -rw-r--r-- | examples/boot/application/nrf/src/bin/a.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/boot/application/nrf/src/bin/a.rs b/examples/boot/application/nrf/src/bin/a.rs index bd8fa3246..133a3e678 100644 --- a/examples/boot/application/nrf/src/bin/a.rs +++ b/examples/boot/application/nrf/src/bin/a.rs | |||
| @@ -36,7 +36,8 @@ async fn main(_spawner: Spawner) { | |||
| 36 | updater.write_firmware(offset, &buf, &mut nvmc, 4096).await.unwrap(); | 36 | updater.write_firmware(offset, &buf, &mut nvmc, 4096).await.unwrap(); |
| 37 | offset += chunk.len(); | 37 | offset += chunk.len(); |
| 38 | } | 38 | } |
| 39 | updater.update(&mut nvmc).await.unwrap(); | 39 | let mut magic = [0; 4]; |
| 40 | updater.mark_updated(&mut nvmc, &mut magic).await.unwrap(); | ||
| 40 | led.set_high(); | 41 | led.set_high(); |
| 41 | cortex_m::peripheral::SCB::sys_reset(); | 42 | cortex_m::peripheral::SCB::sys_reset(); |
| 42 | } | 43 | } |
