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 /tests/rp/src/bin/float.rs | |
| parent | 7559f9e5834799b041d899767ef4305dcfdf0181 (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.rs | 4 |
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"); | |||
| 6 | use defmt::*; | 6 | use defmt::*; |
| 7 | use embassy_executor::Spawner; | 7 | use embassy_executor::Spawner; |
| 8 | use embassy_rp::pac; | 8 | use embassy_rp::pac; |
| 9 | use embassy_time::{Duration, Timer}; | 9 | use embassy_time::Timer; |
| 10 | use {defmt_rtt as _, panic_probe as _}; | 10 | use {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(); |
