Module stm32f412g::flash
source · Expand description
STM32F4xx flash driver
This driver provides basic functionalities for the entire STM32F4 series.
§Features
- Configuring latency based on the system clock frequency
§Missing features
- Support for different power supplies
- Instruction prefetch
- Instruction and data cache
§Usage
To use this driver, a reference to the Flash peripheral is required:
ⓘ
// Inside the board main.rs
let flash = &peripherals.stm32f4.flash;
§Retrieve the current flash latency
ⓘ
let flash_latency = flash.get_latency() as usize;
debug!("Current flash latency is {}", flash_latency);
Modules§
- Tests for the STM32F4xx flash driver.
Structs§
- Main Flash struct