diff options
Diffstat (limited to 'embassy-boot/nrf/src/lib.rs')
-rw-r--r-- | embassy-boot/nrf/src/lib.rs | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/embassy-boot/nrf/src/lib.rs b/embassy-boot/nrf/src/lib.rs index 785cb67e..500cae50 100644 --- a/embassy-boot/nrf/src/lib.rs +++ b/embassy-boot/nrf/src/lib.rs @@ -4,9 +4,7 @@ mod fmt; -pub use embassy_boot::{ - FirmwareUpdater, FlashProvider, Partition, SingleFlashProvider, State, BOOT_MAGIC, -}; +pub use embassy_boot::{FirmwareUpdater, FlashProvider, Partition, SingleFlashProvider}; use embassy_nrf::{ nvmc::{Nvmc, PAGE_SIZE}, peripherals::WDT, @@ -184,29 +182,3 @@ impl<'d> ReadNorFlash for WatchdogFlash<'d> { self.flash.capacity() } } - -pub mod updater { - use super::*; - pub fn new() -> embassy_boot::FirmwareUpdater { - extern "C" { - static __bootloader_state_start: u32; - static __bootloader_state_end: u32; - static __bootloader_dfu_start: u32; - static __bootloader_dfu_end: u32; - } - - let dfu = unsafe { - Partition::new( - &__bootloader_dfu_start as *const u32 as usize, - &__bootloader_dfu_end as *const u32 as usize, - ) - }; - let state = unsafe { - Partition::new( - &__bootloader_state_start as *const u32 as usize, - &__bootloader_state_end as *const u32 as usize, - ) - }; - embassy_boot::FirmwareUpdater::new(dfu, state) - } -} |