aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRasmus Melchior Jacobsen <[email protected]>2023-05-26 04:53:43 +0200
committerRasmus Melchior Jacobsen <[email protected]>2023-05-26 04:53:43 +0200
commit307f2365da9b24fac2a0c312106a5f9986c4b5ea (patch)
tree886b56d3a81977206b5f0bcbcf6605e0640c9adf /examples
parentd82ba4af8a826b5e8f8273b6f314e9c799a0b99c (diff)
Fix blocking example
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32f4/src/bin/flash.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32f4/src/bin/flash.rs b/examples/stm32f4/src/bin/flash.rs
index 4a77595cc..93c54e943 100644
--- a/examples/stm32f4/src/bin/flash.rs
+++ b/examples/stm32f4/src/bin/flash.rs
@@ -4,7 +4,7 @@
4 4
5use defmt::{info, unwrap}; 5use defmt::{info, unwrap};
6use embassy_executor::Spawner; 6use embassy_executor::Spawner;
7use embassy_stm32::flash::Flash; 7use embassy_stm32::flash::{Blocking, Flash};
8use {defmt_rtt as _, panic_probe as _}; 8use {defmt_rtt as _, panic_probe as _};
9 9
10#[embassy_executor::main] 10#[embassy_executor::main]
@@ -26,7 +26,7 @@ async fn main(_spawner: Spawner) {
26 test_flash(&mut f, (2048 - 128) * 1024, 128 * 1024); 26 test_flash(&mut f, (2048 - 128) * 1024, 128 * 1024);
27} 27}
28 28
29fn test_flash(f: &mut Flash, offset: u32, size: u32) { 29fn test_flash(f: &mut Flash<'_, Blocking>, offset: u32, size: u32) {
30 info!("Testing offset: {=u32:#X}, size: {=u32:#X}", offset, size); 30 info!("Testing offset: {=u32:#X}, size: {=u32:#X}", offset, size);
31 31
32 info!("Reading..."); 32 info!("Reading...");