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 | |
| parent | 7e5ead78fed6b9c352852f2619c523f20e7b7fb7 (diff) | |
Align platform specific bootloaders
Diffstat (limited to 'embassy-boot')
| -rw-r--r-- | embassy-boot/nrf/src/lib.rs | 12 | ||||
| -rw-r--r-- | embassy-boot/rp/src/lib.rs | 12 | ||||
| -rw-r--r-- | embassy-boot/stm32/src/lib.rs | 12 |
3 files changed, 18 insertions, 18 deletions
diff --git a/embassy-boot/nrf/src/lib.rs b/embassy-boot/nrf/src/lib.rs index a2176f609..d46ed9f36 100644 --- a/embassy-boot/nrf/src/lib.rs +++ b/embassy-boot/nrf/src/lib.rs | |||
| @@ -30,20 +30,20 @@ impl Default for BootLoader<PAGE_SIZE> { | |||
| 30 | 30 | ||
| 31 | let active = unsafe { | 31 | let active = unsafe { |
| 32 | Partition::new( | 32 | Partition::new( |
| 33 | &__bootloader_active_start as *const u32 as usize, | 33 | &__bootloader_active_start as *const u32 as u32, |
| 34 | &__bootloader_active_end as *const u32 as usize, | 34 | &__bootloader_active_end as *const u32 as u32, |
| 35 | ) | 35 | ) |
| 36 | }; | 36 | }; |
| 37 | let dfu = unsafe { | 37 | let dfu = unsafe { |
| 38 | Partition::new( | 38 | Partition::new( |
| 39 | &__bootloader_dfu_start as *const u32 as usize, | 39 | &__bootloader_dfu_start as *const u32 as u32, |
| 40 | &__bootloader_dfu_end as *const u32 as usize, | 40 | &__bootloader_dfu_end as *const u32 as u32, |
| 41 | ) | 41 | ) |
| 42 | }; | 42 | }; |
| 43 | let state = unsafe { | 43 | let state = unsafe { |
| 44 | Partition::new( | 44 | Partition::new( |
| 45 | &__bootloader_state_start as *const u32 as usize, | 45 | &__bootloader_state_start as *const u32 as u32, |
| 46 | &__bootloader_state_end as *const u32 as usize, | 46 | &__bootloader_state_end as *const u32 as u32, |
| 47 | ) | 47 | ) |
| 48 | }; | 48 | }; |
| 49 | 49 | ||
diff --git a/embassy-boot/rp/src/lib.rs b/embassy-boot/rp/src/lib.rs index 0031efa63..c3cb22299 100644 --- a/embassy-boot/rp/src/lib.rs +++ b/embassy-boot/rp/src/lib.rs | |||
| @@ -66,20 +66,20 @@ impl Default for BootLoader<ERASE_SIZE> { | |||
| 66 | 66 | ||
| 67 | let active = unsafe { | 67 | let active = unsafe { |
| 68 | Partition::new( | 68 | Partition::new( |
| 69 | &__bootloader_active_start as *const u32 as usize, | 69 | &__bootloader_active_start as *const u32 as u32, |
| 70 | &__bootloader_active_end as *const u32 as usize, | 70 | &__bootloader_active_end as *const u32 as u32, |
| 71 | ) | 71 | ) |
| 72 | }; | 72 | }; |
| 73 | let dfu = unsafe { | 73 | let dfu = unsafe { |
| 74 | Partition::new( | 74 | Partition::new( |
| 75 | &__bootloader_dfu_start as *const u32 as usize, | 75 | &__bootloader_dfu_start as *const u32 as u32, |
| 76 | &__bootloader_dfu_end as *const u32 as usize, | 76 | &__bootloader_dfu_end as *const u32 as u32, |
| 77 | ) | 77 | ) |
| 78 | }; | 78 | }; |
| 79 | let state = unsafe { | 79 | let state = unsafe { |
| 80 | Partition::new( | 80 | Partition::new( |
| 81 | &__bootloader_state_start as *const u32 as usize, | 81 | &__bootloader_state_start as *const u32 as u32, |
| 82 | &__bootloader_state_end as *const u32 as usize, | 82 | &__bootloader_state_end as *const u32 as u32, |
| 83 | ) | 83 | ) |
| 84 | }; | 84 | }; |
| 85 | 85 | ||
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 | ||
