added working example for flash

This commit is contained in:
dev-guruprasath 2023-07-31 15:06:15 +05:30
parent c3357f884a
commit 5b4c099afc

View File

@ -4,12 +4,9 @@
use defmt::*;
use embassy_executor::Spawner;
use embassy_stm32::gpio::{Level, Output, Speed};
use embassy_time::{Duration, Timer};
use {defmt_rtt as _, panic_probe as _};
use embassy_stm32::flash::Flash;
#[embassy_executor::main]
async fn main(_spawner: Spawner) {
let p = embassy_stm32::init(Default::default());