aboutsummaryrefslogtreecommitdiff
path: root/tests/nrf/src/bin/buffered_uart_spam.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/nrf/src/bin/buffered_uart_spam.rs
parent7559f9e5834799b041d899767ef4305dcfdf0181 (diff)
time: Update examples, tests, and other code to use new Timer::after_x convenience methods
Diffstat (limited to 'tests/nrf/src/bin/buffered_uart_spam.rs')
-rw-r--r--tests/nrf/src/bin/buffered_uart_spam.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/nrf/src/bin/buffered_uart_spam.rs b/tests/nrf/src/bin/buffered_uart_spam.rs
index 8abeae6d4..65b9d76d1 100644
--- a/tests/nrf/src/bin/buffered_uart_spam.rs
+++ b/tests/nrf/src/bin/buffered_uart_spam.rs
@@ -13,7 +13,7 @@ use embassy_nrf::gpio::{Level, Output, OutputDrive};
13use embassy_nrf::ppi::{Event, Ppi, Task}; 13use embassy_nrf::ppi::{Event, Ppi, Task};
14use embassy_nrf::uarte::Uarte; 14use embassy_nrf::uarte::Uarte;
15use embassy_nrf::{bind_interrupts, pac, peripherals, uarte}; 15use embassy_nrf::{bind_interrupts, pac, peripherals, uarte};
16use embassy_time::{Duration, Timer}; 16use embassy_time::Timer;
17use {defmt_rtt as _, panic_probe as _}; 17use {defmt_rtt as _, panic_probe as _};
18 18
19bind_interrupts!(struct Irqs { 19bind_interrupts!(struct Irqs {
@@ -50,7 +50,7 @@ async fn main(_spawner: Spawner) {
50 info!("uarte initialized!"); 50 info!("uarte initialized!");
51 51
52 // uarte needs some quiet time to start rxing properly. 52 // uarte needs some quiet time to start rxing properly.
53 Timer::after(Duration::from_millis(10)).await; 53 Timer::after_millis(10).await;
54 54
55 // Tx spam in a loop. 55 // Tx spam in a loop.
56 const NSPAM: usize = 17; 56 const NSPAM: usize = 17;