time: Update examples, tests, and other code to use new Timer::after_x convenience methods

This commit is contained in:
Adam Greig
2023-10-15 00:57:25 +01:00
parent 7559f9e583
commit 0621e957a0
174 changed files with 496 additions and 501 deletions

View File

@ -11,7 +11,7 @@ use embassy_stm32::rcc::{
};
use embassy_stm32::time::Hertz;
use embassy_stm32::Config;
use embassy_time::{Duration, Timer};
use embassy_time::Timer;
use {defmt_rtt as _, panic_probe as _};
#[embassy_executor::main]
@ -46,7 +46,7 @@ async fn main(_spawner: Spawner) {
let _p = embassy_stm32::init(config);
loop {
Timer::after(Duration::from_millis(1000)).await;
Timer::after_millis(1000).await;
info!("1s elapsed");
}
}