aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/boot/src/firmware_updater/mod.rs
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2023-08-03 20:56:04 +0200
committerUlf Lilleengen <[email protected]>2023-08-06 19:46:53 +0200
commita34331ae5fbf76a61bb2f65dbb13af4d34fcb176 (patch)
treeeddfa2b200b206923a91b9aae1474156c04e40fa /embassy-boot/boot/src/firmware_updater/mod.rs
parenta40daa923ba031b543ce402f8bd83c2ec41329d8 (diff)
Refactor firmware updater
* Allow manipulating state without accessing DFU partition. * Provide aligned buffer when creating updater to reduce potential wrong parameters passed.
Diffstat (limited to 'embassy-boot/boot/src/firmware_updater/mod.rs')
-rw-r--r--embassy-boot/boot/src/firmware_updater/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-boot/boot/src/firmware_updater/mod.rs b/embassy-boot/boot/src/firmware_updater/mod.rs
index 55ce8f363..937ddcc69 100644
--- a/embassy-boot/boot/src/firmware_updater/mod.rs
+++ b/embassy-boot/boot/src/firmware_updater/mod.rs
@@ -3,8 +3,8 @@ mod asynch;
3mod blocking; 3mod blocking;
4 4
5#[cfg(feature = "nightly")] 5#[cfg(feature = "nightly")]
6pub use asynch::FirmwareUpdater; 6pub use asynch::{FirmwareState, FirmwareUpdater};
7pub use blocking::BlockingFirmwareUpdater; 7pub use blocking::{BlockingFirmwareState, BlockingFirmwareUpdater};
8use embedded_storage::nor_flash::{NorFlashError, NorFlashErrorKind}; 8use embedded_storage::nor_flash::{NorFlashError, NorFlashErrorKind};
9 9
10/// Firmware updater flash configuration holding the two flashes used by the updater 10/// Firmware updater flash configuration holding the two flashes used by the updater