diff options
Diffstat (limited to 'examples/nrf/src/bin/saadc_continuous.rs')
| -rw-r--r-- | examples/nrf/src/bin/saadc_continuous.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/nrf/src/bin/saadc_continuous.rs b/examples/nrf/src/bin/saadc_continuous.rs index 234294eae..d0305736f 100644 --- a/examples/nrf/src/bin/saadc_continuous.rs +++ b/examples/nrf/src/bin/saadc_continuous.rs | |||
| @@ -3,8 +3,8 @@ | |||
| 3 | #![feature(type_alias_impl_trait)] | 3 | #![feature(type_alias_impl_trait)] |
| 4 | 4 | ||
| 5 | use defmt::info; | 5 | use defmt::info; |
| 6 | use embassy::executor::Spawner; | 6 | use embassy_executor::executor::Spawner; |
| 7 | use embassy::time::Duration; | 7 | use embassy_executor::time::Duration; |
| 8 | use embassy_nrf::saadc::{ChannelConfig, Config, Saadc, SamplerState}; | 8 | use embassy_nrf::saadc::{ChannelConfig, Config, Saadc, SamplerState}; |
| 9 | use embassy_nrf::timer::Frequency; | 9 | use embassy_nrf::timer::Frequency; |
| 10 | use embassy_nrf::{interrupt, Peripherals}; | 10 | use embassy_nrf::{interrupt, Peripherals}; |
| @@ -12,7 +12,7 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 12 | 12 | ||
| 13 | // Demonstrates both continuous sampling and scanning multiple channels driven by a PPI linked timer | 13 | // Demonstrates both continuous sampling and scanning multiple channels driven by a PPI linked timer |
| 14 | 14 | ||
| 15 | #[embassy::main] | 15 | #[embassy_executor::main] |
| 16 | async fn main(_spawner: Spawner, mut p: Peripherals) { | 16 | async fn main(_spawner: Spawner, mut p: Peripherals) { |
| 17 | let config = Config::default(); | 17 | let config = Config::default(); |
| 18 | let channel_1_config = ChannelConfig::single_ended(&mut p.P0_02); | 18 | let channel_1_config = ChannelConfig::single_ended(&mut p.P0_02); |
| @@ -27,7 +27,7 @@ async fn main(_spawner: Spawner, mut p: Peripherals) { | |||
| 27 | 27 | ||
| 28 | // This delay demonstrates that starting the timer prior to running | 28 | // This delay demonstrates that starting the timer prior to running |
| 29 | // the task sampler is benign given the calibration that follows. | 29 | // the task sampler is benign given the calibration that follows. |
| 30 | embassy::time::Timer::after(Duration::from_millis(500)).await; | 30 | embassy_executor::time::Timer::after(Duration::from_millis(500)).await; |
| 31 | saadc.calibrate().await; | 31 | saadc.calibrate().await; |
| 32 | 32 | ||
| 33 | let mut bufs = [[[0; 3]; 500]; 2]; | 33 | let mut bufs = [[[0; 3]; 500]; 2]; |
