embassy-rp

Crates

git

Versions

rp235xa

Flavors

embassy_rp::rom_data

Function pick_ab_parition

Source
pub unsafe extern "C" fn pick_ab_parition(
    workarea_base: *mut u8,
    workarea_size: usize,
    partition_a_num: u32,
) -> i32
Expand description

Determines which of the partitions has the “better” IMAGE_DEF. In the case of executable images, this is the one that would be booted.

See datasheet section 5.5.12.1 for more details.

Supported architectures: ARM-S, RISC-V

§Safety

This is a low-level C function. It may be difficult to call safely from Rust. If in doubt, check the rp235x datasheet for details and do your own safety evaluation.