diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-10-06 22:55:38 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-10-06 23:19:53 +0200 |
| commit | abc8e450f936567ad42cb34b5d2a7941b206aa5d (patch) | |
| tree | 57b8ec55ad4fc9048524f2899b34198c5a8e61df /embassy-boot/src | |
| parent | e2a2bd3c573928208a4c85e7fcd6ad630f23f47d (diff) | |
Edition 2024.
Diffstat (limited to 'embassy-boot/src')
| -rw-r--r-- | embassy-boot/src/boot_loader.rs | 2 | ||||
| -rw-r--r-- | embassy-boot/src/firmware_updater/asynch.rs | 2 | ||||
| -rw-r--r-- | embassy-boot/src/firmware_updater/blocking.rs | 2 | ||||
| -rw-r--r-- | embassy-boot/src/lib.rs | 1 |
4 files changed, 4 insertions, 3 deletions
diff --git a/embassy-boot/src/boot_loader.rs b/embassy-boot/src/boot_loader.rs index 5bffdc5ea..8d97882ea 100644 --- a/embassy-boot/src/boot_loader.rs +++ b/embassy-boot/src/boot_loader.rs | |||
| @@ -94,7 +94,7 @@ impl<'a, ACTIVE: NorFlash, DFU: NorFlash, STATE: NorFlash> | |||
| 94 | dfu_flash: &'a Mutex<NoopRawMutex, RefCell<DFU>>, | 94 | dfu_flash: &'a Mutex<NoopRawMutex, RefCell<DFU>>, |
| 95 | state_flash: &'a Mutex<NoopRawMutex, RefCell<STATE>>, | 95 | state_flash: &'a Mutex<NoopRawMutex, RefCell<STATE>>, |
| 96 | ) -> Self { | 96 | ) -> Self { |
| 97 | extern "C" { | 97 | unsafe extern "C" { |
| 98 | static __bootloader_state_start: u32; | 98 | static __bootloader_state_start: u32; |
| 99 | static __bootloader_state_end: u32; | 99 | static __bootloader_state_end: u32; |
| 100 | static __bootloader_active_start: u32; | 100 | static __bootloader_active_start: u32; |
diff --git a/embassy-boot/src/firmware_updater/asynch.rs b/embassy-boot/src/firmware_updater/asynch.rs index 66e311e38..fd02fa526 100644 --- a/embassy-boot/src/firmware_updater/asynch.rs +++ b/embassy-boot/src/firmware_updater/asynch.rs | |||
| @@ -25,7 +25,7 @@ impl<'a, DFU: NorFlash, STATE: NorFlash> | |||
| 25 | dfu_flash: &'a embassy_sync::mutex::Mutex<NoopRawMutex, DFU>, | 25 | dfu_flash: &'a embassy_sync::mutex::Mutex<NoopRawMutex, DFU>, |
| 26 | state_flash: &'a embassy_sync::mutex::Mutex<NoopRawMutex, STATE>, | 26 | state_flash: &'a embassy_sync::mutex::Mutex<NoopRawMutex, STATE>, |
| 27 | ) -> Self { | 27 | ) -> Self { |
| 28 | extern "C" { | 28 | unsafe extern "C" { |
| 29 | static __bootloader_state_start: u32; | 29 | static __bootloader_state_start: u32; |
| 30 | static __bootloader_state_end: u32; | 30 | static __bootloader_state_end: u32; |
| 31 | static __bootloader_dfu_start: u32; | 31 | static __bootloader_dfu_start: u32; |
diff --git a/embassy-boot/src/firmware_updater/blocking.rs b/embassy-boot/src/firmware_updater/blocking.rs index 0fedac1ea..44550e795 100644 --- a/embassy-boot/src/firmware_updater/blocking.rs +++ b/embassy-boot/src/firmware_updater/blocking.rs | |||
| @@ -55,7 +55,7 @@ impl<'a, DFU: NorFlash, STATE: NorFlash> | |||
| 55 | dfu_flash: &'a embassy_sync::blocking_mutex::Mutex<NoopRawMutex, core::cell::RefCell<DFU>>, | 55 | dfu_flash: &'a embassy_sync::blocking_mutex::Mutex<NoopRawMutex, core::cell::RefCell<DFU>>, |
| 56 | state_flash: &'a embassy_sync::blocking_mutex::Mutex<NoopRawMutex, core::cell::RefCell<STATE>>, | 56 | state_flash: &'a embassy_sync::blocking_mutex::Mutex<NoopRawMutex, core::cell::RefCell<STATE>>, |
| 57 | ) -> Self { | 57 | ) -> Self { |
| 58 | extern "C" { | 58 | unsafe extern "C" { |
| 59 | static __bootloader_state_start: u32; | 59 | static __bootloader_state_start: u32; |
| 60 | static __bootloader_state_end: u32; | 60 | static __bootloader_state_end: u32; |
| 61 | static __bootloader_dfu_start: u32; | 61 | static __bootloader_dfu_start: u32; |
diff --git a/embassy-boot/src/lib.rs b/embassy-boot/src/lib.rs index e2c4cf771..4d7ebfc4f 100644 --- a/embassy-boot/src/lib.rs +++ b/embassy-boot/src/lib.rs | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![allow(async_fn_in_trait)] | 2 | #![allow(async_fn_in_trait)] |
| 3 | #![allow(unsafe_op_in_unsafe_fn)] | ||
| 3 | #![warn(missing_docs)] | 4 | #![warn(missing_docs)] |
| 4 | #![doc = include_str!("../README.md")] | 5 | #![doc = include_str!("../README.md")] |
| 5 | mod fmt; | 6 | mod fmt; |
