diff options
| author | Adam Greig <[email protected]> | 2023-10-15 00:57:25 +0100 |
|---|---|---|
| committer | Adam Greig <[email protected]> | 2023-10-15 01:30:12 +0100 |
| commit | 0621e957a0ddc7010d46b3ea3ddc8b9852bc8333 (patch) | |
| tree | f6caefe939109e55a73e9141c736d2f6c20f51e8 /examples/boot/application/stm32wl/src | |
| parent | 7559f9e5834799b041d899767ef4305dcfdf0181 (diff) | |
time: Update examples, tests, and other code to use new Timer::after_x convenience methods
Diffstat (limited to 'examples/boot/application/stm32wl/src')
| -rw-r--r-- | examples/boot/application/stm32wl/src/bin/b.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/boot/application/stm32wl/src/bin/b.rs b/examples/boot/application/stm32wl/src/bin/b.rs index f9f0ffc60..1ca3c6ea8 100644 --- a/examples/boot/application/stm32wl/src/bin/b.rs +++ b/examples/boot/application/stm32wl/src/bin/b.rs | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | use defmt_rtt::*; | 6 | use defmt_rtt::*; |
| 7 | use embassy_executor::Spawner; | 7 | use embassy_executor::Spawner; |
| 8 | use embassy_stm32::gpio::{Level, Output, Speed}; | 8 | use embassy_stm32::gpio::{Level, Output, Speed}; |
| 9 | use embassy_time::{Duration, Timer}; | 9 | use embassy_time::Timer; |
| 10 | use panic_reset as _; | 10 | use panic_reset as _; |
| 11 | 11 | ||
| 12 | #[embassy_executor::main] | 12 | #[embassy_executor::main] |
| @@ -16,9 +16,9 @@ async fn main(_spawner: Spawner) { | |||
| 16 | 16 | ||
| 17 | loop { | 17 | loop { |
| 18 | led.set_high(); | 18 | led.set_high(); |
| 19 | Timer::after(Duration::from_millis(500)).await; | 19 | Timer::after_millis(500).await; |
| 20 | 20 | ||
| 21 | led.set_low(); | 21 | led.set_low(); |
| 22 | Timer::after(Duration::from_millis(500)).await; | 22 | Timer::after_millis(500).await; |
| 23 | } | 23 | } |
| 24 | } | 24 | } |
