Let Flash<Async/Blocking> be a thing

This commit is contained in:
Rasmus Melchior Jacobsen
2023-05-25 21:40:54 +02:00
parent 18d14dff48
commit 860b519f99
19 changed files with 63 additions and 43 deletions

View File

@ -18,7 +18,7 @@ async fn main(_spawner: Spawner) {
// wait a bit before accessing the flash
Timer::after(Duration::from_millis(300)).await;
let mut f = Flash::new_blocking_only(p.FLASH).into_blocking_regions().bank2_region;
let mut f = Flash::new_blocking(p.FLASH).into_blocking_regions().bank2_region;
info!("Reading...");
let mut buf = [0u8; 32];