diff options
Diffstat (limited to 'examples/nrf52840/src/bin/qspi_lowpower.rs')
| -rw-r--r-- | examples/nrf52840/src/bin/qspi_lowpower.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nrf52840/src/bin/qspi_lowpower.rs b/examples/nrf52840/src/bin/qspi_lowpower.rs index 22a5c0c6d..42b5454e0 100644 --- a/examples/nrf52840/src/bin/qspi_lowpower.rs +++ b/examples/nrf52840/src/bin/qspi_lowpower.rs | |||
| @@ -8,7 +8,7 @@ use defmt::{info, unwrap}; | |||
| 8 | use embassy_executor::Spawner; | 8 | use embassy_executor::Spawner; |
| 9 | use embassy_nrf::qspi::Frequency; | 9 | use embassy_nrf::qspi::Frequency; |
| 10 | use embassy_nrf::{bind_interrupts, peripherals, qspi}; | 10 | use embassy_nrf::{bind_interrupts, peripherals, qspi}; |
| 11 | use embassy_time::{Duration, Timer}; | 11 | use embassy_time::Timer; |
| 12 | use {defmt_rtt as _, panic_probe as _}; | 12 | use {defmt_rtt as _, panic_probe as _}; |
| 13 | 13 | ||
| 14 | // Workaround for alignment requirements. | 14 | // Workaround for alignment requirements. |
| @@ -79,6 +79,6 @@ async fn main(_p: Spawner) { | |||
| 79 | 79 | ||
| 80 | // Sleep for 1 second. The executor ensures the core sleeps with a WFE when it has nothing to do. | 80 | // Sleep for 1 second. The executor ensures the core sleeps with a WFE when it has nothing to do. |
| 81 | // During this sleep, the nRF chip should only use ~3uA | 81 | // During this sleep, the nRF chip should only use ~3uA |
| 82 | Timer::after(Duration::from_secs(1)).await; | 82 | Timer::after_secs(1).await; |
| 83 | } | 83 | } |
| 84 | } | 84 | } |
