Align platform specific bootloaders
This commit is contained in:
parent
7e5ead78fe
commit
05b2b2fb5f
3 changed files with 18 additions and 18 deletions
|
@ -30,20 +30,20 @@ impl Default for BootLoader<PAGE_SIZE> {
|
||||||
|
|
||||||
let active = unsafe {
|
let active = unsafe {
|
||||||
Partition::new(
|
Partition::new(
|
||||||
&__bootloader_active_start as *const u32 as usize,
|
&__bootloader_active_start as *const u32 as u32,
|
||||||
&__bootloader_active_end as *const u32 as usize,
|
&__bootloader_active_end as *const u32 as u32,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
let dfu = unsafe {
|
let dfu = unsafe {
|
||||||
Partition::new(
|
Partition::new(
|
||||||
&__bootloader_dfu_start as *const u32 as usize,
|
&__bootloader_dfu_start as *const u32 as u32,
|
||||||
&__bootloader_dfu_end as *const u32 as usize,
|
&__bootloader_dfu_end as *const u32 as u32,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
let state = unsafe {
|
let state = unsafe {
|
||||||
Partition::new(
|
Partition::new(
|
||||||
&__bootloader_state_start as *const u32 as usize,
|
&__bootloader_state_start as *const u32 as u32,
|
||||||
&__bootloader_state_end as *const u32 as usize,
|
&__bootloader_state_end as *const u32 as u32,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -66,20 +66,20 @@ impl Default for BootLoader<ERASE_SIZE> {
|
||||||
|
|
||||||
let active = unsafe {
|
let active = unsafe {
|
||||||
Partition::new(
|
Partition::new(
|
||||||
&__bootloader_active_start as *const u32 as usize,
|
&__bootloader_active_start as *const u32 as u32,
|
||||||
&__bootloader_active_end as *const u32 as usize,
|
&__bootloader_active_end as *const u32 as u32,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
let dfu = unsafe {
|
let dfu = unsafe {
|
||||||
Partition::new(
|
Partition::new(
|
||||||
&__bootloader_dfu_start as *const u32 as usize,
|
&__bootloader_dfu_start as *const u32 as u32,
|
||||||
&__bootloader_dfu_end as *const u32 as usize,
|
&__bootloader_dfu_end as *const u32 as u32,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
let state = unsafe {
|
let state = unsafe {
|
||||||
Partition::new(
|
Partition::new(
|
||||||
&__bootloader_state_start as *const u32 as usize,
|
&__bootloader_state_start as *const u32 as u32,
|
||||||
&__bootloader_state_end as *const u32 as usize,
|
&__bootloader_state_end as *const u32 as u32,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -61,20 +61,20 @@ impl<const BUFFER_SIZE: usize> Default for BootLoader<BUFFER_SIZE> {
|
||||||
|
|
||||||
let active = unsafe {
|
let active = unsafe {
|
||||||
Partition::new(
|
Partition::new(
|
||||||
&__bootloader_active_start as *const u32 as usize,
|
&__bootloader_active_start as *const u32 as u32,
|
||||||
&__bootloader_active_end as *const u32 as usize,
|
&__bootloader_active_end as *const u32 as u32,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
let dfu = unsafe {
|
let dfu = unsafe {
|
||||||
Partition::new(
|
Partition::new(
|
||||||
&__bootloader_dfu_start as *const u32 as usize,
|
&__bootloader_dfu_start as *const u32 as u32,
|
||||||
&__bootloader_dfu_end as *const u32 as usize,
|
&__bootloader_dfu_end as *const u32 as u32,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
let state = unsafe {
|
let state = unsafe {
|
||||||
Partition::new(
|
Partition::new(
|
||||||
&__bootloader_state_start as *const u32 as usize,
|
&__bootloader_state_start as *const u32 as u32,
|
||||||
&__bootloader_state_end as *const u32 as usize,
|
&__bootloader_state_end as *const u32 as u32,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue