aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4/src
diff options
context:
space:
mode:
authorRasmus Melchior Jacobsen <[email protected]>2023-05-25 21:40:54 +0200
committerRasmus Melchior Jacobsen <[email protected]>2023-05-25 21:40:54 +0200
commit860b519f9993bd8991849c680aae058558aadfbd (patch)
treea0f815620d3be788cb69f0c97c6e42480ee24bae /examples/stm32f4/src
parent18d14dff48d1fd49cfd43fb94304bf932a74a6ca (diff)
Let Flash<Async/Blocking> be a thing
Diffstat (limited to 'examples/stm32f4/src')
-rw-r--r--examples/stm32f4/src/bin/flash.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/flash.rs b/examples/stm32f4/src/bin/flash.rs
index 455af930b..cadb0129d 100644
--- a/examples/stm32f4/src/bin/flash.rs
+++ b/examples/stm32f4/src/bin/flash.rs
@@ -14,7 +14,7 @@ async fn main(_spawner: Spawner) {
14 14
15 // Once can also call `into_regions()` to get access to NorFlash implementations 15 // Once can also call `into_regions()` to get access to NorFlash implementations
16 // for each of the unique characteristics. 16 // for each of the unique characteristics.
17 let mut f = Flash::new_blocking_only(p.FLASH); 17 let mut f = Flash::new_blocking(p.FLASH);
18 18
19 // Sector 5 19 // Sector 5
20 test_flash(&mut f, 128 * 1024, 128 * 1024); 20 test_flash(&mut f, 128 * 1024, 128 * 1024);