aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/src/firmware_updater/blocking.rs
diff options
context:
space:
mode:
authorBadr Bouslikhin <[email protected]>2024-02-07 11:32:13 +0100
committerBadr Bouslikhin <[email protected]>2024-02-07 11:32:13 +0100
commitaf2b4df833902fa8d42cb133c52733fe0b848bc7 (patch)
tree1f2cc5d98362fe12edd3a23cb0ff2bb258cbbfd9 /embassy-boot/src/firmware_updater/blocking.rs
parentc267cb9ab764176bc8514535f4db8ac2331e30ce (diff)
refactor(boot): change generics name to match existing convention
Diffstat (limited to 'embassy-boot/src/firmware_updater/blocking.rs')
-rw-r--r--embassy-boot/src/firmware_updater/blocking.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/embassy-boot/src/firmware_updater/blocking.rs b/embassy-boot/src/firmware_updater/blocking.rs
index 3814b6c31..cf850fce3 100644
--- a/embassy-boot/src/firmware_updater/blocking.rs
+++ b/embassy-boot/src/firmware_updater/blocking.rs
@@ -16,16 +16,13 @@ pub struct BlockingFirmwareUpdater<'d, DFU: NorFlash, STATE: NorFlash> {
16} 16}
17 17
18#[cfg(target_os = "none")] 18#[cfg(target_os = "none")]
19impl<'a, DFUFlash: NorFlash, StateFlash: NorFlash> 19impl<'a, DFU: NorFlash, STATE: NorFlash>
20 FirmwareUpdaterConfig< 20 FirmwareUpdaterConfig<BlockingPartition<'a, NoopRawMutex, DFU>, BlockingPartition<'a, NoopRawMutex, STATE>>
21 BlockingPartition<'a, NoopRawMutex, DFUFlash>,
22 BlockingPartition<'a, NoopRawMutex, StateFlash>,
23 >
24{ 21{
25 /// Create a firmware updater config from the flash and address symbols defined in the linkerfile 22 /// Create a firmware updater config from the flash and address symbols defined in the linkerfile
26 pub fn from_linkerfile_blocking( 23 pub fn from_linkerfile_blocking(
27 dfu_flash: &'a embassy_sync::blocking_mutex::Mutex<NoopRawMutex, core::cell::RefCell<DFUFlash>>, 24 dfu_flash: &'a embassy_sync::blocking_mutex::Mutex<NoopRawMutex, core::cell::RefCell<DFU>>,
28 state_flash: &'a embassy_sync::blocking_mutex::Mutex<NoopRawMutex, core::cell::RefCell<StateFlash>>, 25 state_flash: &'a embassy_sync::blocking_mutex::Mutex<NoopRawMutex, core::cell::RefCell<STATE>>,
29 ) -> Self { 26 ) -> Self {
30 extern "C" { 27 extern "C" {
31 static __bootloader_state_start: u32; 28 static __bootloader_state_start: u32;