Function stm32wlxx_hal::flash::flash_range
source · pub fn flash_range() -> Range<usize>
Expand description
Range of flash memory.
This is calculated at runtime using the info registers.
Example
use core::ops::Range;
use stm32wlxx_hal::flash::flash_range;
// valid for the nucleo-wl55jc with 256k flash
assert_eq!(
flash_range(),
Range {
start: 0x0800_0000,
end: 0x0804_0000
}
);
assert!(flash_range().contains(&0x0800_0000));
assert!(flash_range().contains(&0x0803_FFFF));
assert!(!flash_range().contains(&0x0804_0000));