Function stm32wlxx_hal::flash::num_pages

source ·
pub fn num_pages() -> u8
Expand description

Number of flash pages.

This is calculated at runtime using the info registers.

Example

use stm32wlxx_hal::flash::num_pages;

// valid for the nucleo-wl55jc with 256k flash
assert_eq!(num_pages(), 0x80);