embassy-rp

Crates

git

Versions

rp235xb

Flavors

Function embassy_rp::rom_data::set_rom_callback

source ·
pub unsafe extern "C" fn set_rom_callback(
    callback_number: i32,
    callback_fn: *const (),
) -> i32
Expand description

Set a boot ROM callback.

The only supported callback_number is 0 which sets the callback used for the secure_call API.

See datasheet section 5.5.10.3 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.