embassy-rp

Crates

git

Versions

rp2040

Flavors

embassy_rp::rom_data

Function flash_range_erase

Source
pub unsafe extern "C" fn flash_range_erase(
    addr: u32,
    count: usize,
    block_size: u32,
    block_cmd: u8,
)
Expand description

Erase a count bytes, starting at addr (offset from start of flash). Optionally, pass a block erase command e.g. D8h block erase, and the size of the block erased by this command — this function will use the larger block erase where possible, for much higher erase speed. addr must be aligned to a 4096-byte sector, and count must be a multiple of 4096 bytes.