diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-07-29 21:58:35 +0200 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-07-29 23:40:36 +0200 |
commit | a0f1b0ee01d461607660d2d56b5b1bdc57e0d3fb (patch) | |
tree | e60fc8f8db8ec07e55d655c1a830b07f4db0b7d2 /examples/nrf/src/bin/pwm.rs | |
parent | 8745d646f0976791b7098456aa61adb983fb1c18 (diff) | |
download | embassy-a0f1b0ee01d461607660d2d56b5b1bdc57e0d3fb.zip |
Split embassy crate into embassy-executor, embassy-util.
Diffstat (limited to 'examples/nrf/src/bin/pwm.rs')
-rw-r--r-- | examples/nrf/src/bin/pwm.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/nrf/src/bin/pwm.rs b/examples/nrf/src/bin/pwm.rs index aec5dd73..c8a08329 100644 --- a/examples/nrf/src/bin/pwm.rs +++ b/examples/nrf/src/bin/pwm.rs @@ -3,8 +3,8 @@ #![feature(type_alias_impl_trait)] use defmt::*; -use embassy::executor::Spawner; -use embassy::time::{Duration, Timer}; +use embassy_executor::executor::Spawner; +use embassy_executor::time::{Duration, Timer}; use embassy_nrf::pwm::{Prescaler, SimplePwm}; use embassy_nrf::Peripherals; use {defmt_rtt as _, panic_probe as _}; @@ -70,7 +70,7 @@ static DUTY: [u16; 1024] = [ 7255, 7331, 7407, 7484, 7561, 7638, 7716, 7794, 7873, 7952, 8031, 8111, ]; -#[embassy::main] +#[embassy_executor::main] async fn main(_spawner: Spawner, p: Peripherals) { let mut pwm = SimplePwm::new_4ch(p.PWM0, p.P0_13, p.P0_14, p.P0_16, p.P0_15); pwm.set_prescaler(Prescaler::Div1); |