diff options
Diffstat (limited to 'examples/stm32f4/src/bin/flash_async.rs')
| -rw-r--r-- | examples/stm32f4/src/bin/flash_async.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32f4/src/bin/flash_async.rs b/examples/stm32f4/src/bin/flash_async.rs index 6c9689d9c..f0a65a725 100644 --- a/examples/stm32f4/src/bin/flash_async.rs +++ b/examples/stm32f4/src/bin/flash_async.rs | |||
| @@ -7,7 +7,7 @@ use embassy_executor::Spawner; | |||
| 7 | use embassy_stm32::bind_interrupts; | 7 | use embassy_stm32::bind_interrupts; |
| 8 | use embassy_stm32::flash::{Flash, InterruptHandler}; | 8 | use embassy_stm32::flash::{Flash, InterruptHandler}; |
| 9 | use embassy_stm32::gpio::{AnyPin, Level, Output, Pin, Speed}; | 9 | use embassy_stm32::gpio::{AnyPin, Level, Output, Pin, Speed}; |
| 10 | use embassy_time::{Duration, Timer}; | 10 | use embassy_time::Timer; |
| 11 | use {defmt_rtt as _, panic_probe as _}; | 11 | use {defmt_rtt as _, panic_probe as _}; |
| 12 | 12 | ||
| 13 | bind_interrupts!(struct Irqs { | 13 | bind_interrupts!(struct Irqs { |
| @@ -35,11 +35,11 @@ async fn blinky(p: AnyPin) { | |||
| 35 | loop { | 35 | loop { |
| 36 | info!("high"); | 36 | info!("high"); |
| 37 | led.set_high(); | 37 | led.set_high(); |
| 38 | Timer::after(Duration::from_millis(300)).await; | 38 | Timer::after_millis(300).await; |
| 39 | 39 | ||
| 40 | info!("low"); | 40 | info!("low"); |
| 41 | led.set_low(); | 41 | led.set_low(); |
| 42 | Timer::after(Duration::from_millis(300)).await; | 42 | Timer::after_millis(300).await; |
| 43 | } | 43 | } |
| 44 | } | 44 | } |
| 45 | 45 | ||
