diff options
Diffstat (limited to 'embassy-boot/src/lib.rs')
| -rw-r--r-- | embassy-boot/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/embassy-boot/src/lib.rs b/embassy-boot/src/lib.rs index b4f03e01e..8849055e8 100644 --- a/embassy-boot/src/lib.rs +++ b/embassy-boot/src/lib.rs | |||
| @@ -14,7 +14,11 @@ mod test_flash; | |||
| 14 | 14 | ||
| 15 | // The expected value of the flash after an erase | 15 | // The expected value of the flash after an erase |
| 16 | // TODO: Use the value provided by NorFlash when available | 16 | // TODO: Use the value provided by NorFlash when available |
| 17 | #[cfg(not(feature = "flash-erase-zero"))] | ||
| 17 | pub(crate) const STATE_ERASE_VALUE: u8 = 0xFF; | 18 | pub(crate) const STATE_ERASE_VALUE: u8 = 0xFF; |
| 19 | #[cfg(feature = "flash-erase-zero")] | ||
| 20 | pub(crate) const STATE_ERASE_VALUE: u8 = 0x00; | ||
| 21 | |||
| 18 | pub use boot_loader::{BootError, BootLoader, BootLoaderConfig}; | 22 | pub use boot_loader::{BootError, BootLoader, BootLoaderConfig}; |
| 19 | pub use firmware_updater::{ | 23 | pub use firmware_updater::{ |
| 20 | BlockingFirmwareState, BlockingFirmwareUpdater, FirmwareState, FirmwareUpdater, FirmwareUpdaterConfig, | 24 | BlockingFirmwareState, BlockingFirmwareUpdater, FirmwareState, FirmwareUpdater, FirmwareUpdaterConfig, |
