diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2023-04-05 09:56:40 +0200 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2023-04-05 09:56:40 +0200 |
| commit | 05b2b2fb5f0f8d52689057c22dd2fa026d6cc796 (patch) | |
| tree | 8ec4343140782b6f07fd1b0efeb5e52bba37646f /embassy-boot/stm32/src | |
| parent | 7e5ead78fed6b9c352852f2619c523f20e7b7fb7 (diff) | |
Align platform specific bootloaders
Diffstat (limited to 'embassy-boot/stm32/src')
| -rw-r--r-- | embassy-boot/stm32/src/lib.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/embassy-boot/stm32/src/lib.rs b/embassy-boot/stm32/src/lib.rs index 1f63fcd63..94404697f 100644 --- a/embassy-boot/stm32/src/lib.rs +++ b/embassy-boot/stm32/src/lib.rs | |||
| @@ -61,20 +61,20 @@ impl<const BUFFER_SIZE: usize> Default for BootLoader<BUFFER_SIZE> { | |||
| 61 | 61 | ||
| 62 | let active = unsafe { | 62 | let active = unsafe { |
| 63 | Partition::new( | 63 | Partition::new( |
| 64 | &__bootloader_active_start as *const u32 as usize, | 64 | &__bootloader_active_start as *const u32 as u32, |
| 65 | &__bootloader_active_end as *const u32 as usize, | 65 | &__bootloader_active_end as *const u32 as u32, |
| 66 | ) | 66 | ) |
| 67 | }; | 67 | }; |
| 68 | let dfu = unsafe { | 68 | let dfu = unsafe { |
| 69 | Partition::new( | 69 | Partition::new( |
| 70 | &__bootloader_dfu_start as *const u32 as usize, | 70 | &__bootloader_dfu_start as *const u32 as u32, |
| 71 | &__bootloader_dfu_end as *const u32 as usize, | 71 | &__bootloader_dfu_end as *const u32 as u32, |
| 72 | ) | 72 | ) |
| 73 | }; | 73 | }; |
| 74 | let state = unsafe { | 74 | let state = unsafe { |
| 75 | Partition::new( | 75 | Partition::new( |
| 76 | &__bootloader_state_start as *const u32 as usize, | 76 | &__bootloader_state_start as *const u32 as u32, |
| 77 | &__bootloader_state_end as *const u32 as usize, | 77 | &__bootloader_state_end as *const u32 as u32, |
| 78 | ) | 78 | ) |
| 79 | }; | 79 | }; |
| 80 | 80 | ||
