aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/src/boot_loader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-boot/src/boot_loader.rs')
-rw-r--r--embassy-boot/src/boot_loader.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/embassy-boot/src/boot_loader.rs b/embassy-boot/src/boot_loader.rs
index 54ae8a34b..c433ce439 100644
--- a/embassy-boot/src/boot_loader.rs
+++ b/embassy-boot/src/boot_loader.rs
@@ -49,19 +49,19 @@ pub struct BootLoaderConfig<ACTIVE, DFU, STATE> {
49 pub state: STATE, 49 pub state: STATE,
50} 50}
51 51
52impl<'a, ActiveFlash: NorFlash, DFUFlash: NorFlash, StateFlash: NorFlash> 52impl<'a, ACTIVE: NorFlash, DFU: NorFlash, STATE: NorFlash>
53 BootLoaderConfig< 53 BootLoaderConfig<
54 BlockingPartition<'a, NoopRawMutex, ActiveFlash>, 54 BlockingPartition<'a, NoopRawMutex, ACTIVE>,
55 BlockingPartition<'a, NoopRawMutex, DFUFlash>, 55 BlockingPartition<'a, NoopRawMutex, DFU>,
56 BlockingPartition<'a, NoopRawMutex, StateFlash>, 56 BlockingPartition<'a, NoopRawMutex, STATE>,
57 > 57 >
58{ 58{
59 /// Create a bootloader config from the flash and address symbols defined in the linkerfile 59 /// Create a bootloader config from the flash and address symbols defined in the linkerfile
60 // #[cfg(target_os = "none")] 60 // #[cfg(target_os = "none")]
61 pub fn from_linkerfile_blocking( 61 pub fn from_linkerfile_blocking(
62 active_flash: &'a Mutex<NoopRawMutex, RefCell<ActiveFlash>>, 62 active_flash: &'a Mutex<NoopRawMutex, RefCell<ACTIVE>>,
63 dfu_flash: &'a Mutex<NoopRawMutex, RefCell<DFUFlash>>, 63 dfu_flash: &'a Mutex<NoopRawMutex, RefCell<DFU>>,
64 state_flash: &'a Mutex<NoopRawMutex, RefCell<StateFlash>>, 64 state_flash: &'a Mutex<NoopRawMutex, RefCell<STATE>>,
65 ) -> Self { 65 ) -> Self {
66 extern "C" { 66 extern "C" {
67 static __bootloader_state_start: u32; 67 static __bootloader_state_start: u32;