aboutsummaryrefslogtreecommitdiff
path: root/tests/rp/src/bin/float.rs
diff options
context:
space:
mode:
authorAdam Greig <[email protected]>2023-10-15 00:57:25 +0100
committerAdam Greig <[email protected]>2023-10-15 01:30:12 +0100
commit0621e957a0ddc7010d46b3ea3ddc8b9852bc8333 (patch)
treef6caefe939109e55a73e9141c736d2f6c20f51e8 /tests/rp/src/bin/float.rs
parent7559f9e5834799b041d899767ef4305dcfdf0181 (diff)
time: Update examples, tests, and other code to use new Timer::after_x convenience methods
Diffstat (limited to 'tests/rp/src/bin/float.rs')
-rw-r--r--tests/rp/src/bin/float.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rp/src/bin/float.rs b/tests/rp/src/bin/float.rs
index 2874aa910..1e89c10f8 100644
--- a/tests/rp/src/bin/float.rs
+++ b/tests/rp/src/bin/float.rs
@@ -6,7 +6,7 @@ teleprobe_meta::target!(b"rpi-pico");
6use defmt::*; 6use defmt::*;
7use embassy_executor::Spawner; 7use embassy_executor::Spawner;
8use embassy_rp::pac; 8use embassy_rp::pac;
9use embassy_time::{Duration, Timer}; 9use embassy_time::Timer;
10use {defmt_rtt as _, panic_probe as _}; 10use {defmt_rtt as _, panic_probe as _};
11 11
12#[embassy_executor::main] 12#[embassy_executor::main]
@@ -40,7 +40,7 @@ async fn main(_spawner: Spawner) {
40 rad_d + PI_D, 40 rad_d + PI_D,
41 rad_d % PI_D 41 rad_d % PI_D
42 ); 42 );
43 Timer::after(Duration::from_millis(10)).await; 43 Timer::after_millis(10).await;
44 } 44 }
45 45
46 let rom_accesses = pac::BUSCTRL.perfctr(0).read().perfctr(); 46 let rom_accesses = pac::BUSCTRL.perfctr(0).read().perfctr();