diff options
| author | Ulf Lilleengen <[email protected]> | 2023-08-03 20:56:04 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2023-08-06 19:46:53 +0200 |
| commit | a34331ae5fbf76a61bb2f65dbb13af4d34fcb176 (patch) | |
| tree | eddfa2b200b206923a91b9aae1474156c04e40fa /embassy-boot/boot/src/firmware_updater/mod.rs | |
| parent | a40daa923ba031b543ce402f8bd83c2ec41329d8 (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.rs | 4 |
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; | |||
| 3 | mod blocking; | 3 | mod blocking; |
| 4 | 4 | ||
| 5 | #[cfg(feature = "nightly")] | 5 | #[cfg(feature = "nightly")] |
| 6 | pub use asynch::FirmwareUpdater; | 6 | pub use asynch::{FirmwareState, FirmwareUpdater}; |
| 7 | pub use blocking::BlockingFirmwareUpdater; | 7 | pub use blocking::{BlockingFirmwareState, BlockingFirmwareUpdater}; |
| 8 | use embedded_storage::nor_flash::{NorFlashError, NorFlashErrorKind}; | 8 | use 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 |
