diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-03-26 16:01:37 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-03-27 15:18:06 +0100 |
| commit | d41eeeae79388f219bf6a84e2f7bde9f6b532516 (patch) | |
| tree | 678b6fc732216e529dc38e6f65b72a309917ac32 /examples/nrf52840-rtic | |
| parent | 9edf5b7f049f95742b60b041e4443967d8a6b708 (diff) | |
Remove Peripheral trait, rename PeripheralRef->Peri.
Diffstat (limited to 'examples/nrf52840-rtic')
| -rw-r--r-- | examples/nrf52840-rtic/src/bin/blinky.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nrf52840-rtic/src/bin/blinky.rs b/examples/nrf52840-rtic/src/bin/blinky.rs index 5a074ea17..719e22729 100644 --- a/examples/nrf52840-rtic/src/bin/blinky.rs +++ b/examples/nrf52840-rtic/src/bin/blinky.rs | |||
| @@ -8,7 +8,7 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 8 | mod app { | 8 | mod app { |
| 9 | use defmt::info; | 9 | use defmt::info; |
| 10 | use embassy_nrf::gpio::{Level, Output, OutputDrive}; | 10 | use embassy_nrf::gpio::{Level, Output, OutputDrive}; |
| 11 | use embassy_nrf::peripherals; | 11 | use embassy_nrf::{peripherals, Peri}; |
| 12 | use embassy_time::Timer; | 12 | use embassy_time::Timer; |
| 13 | 13 | ||
| 14 | #[shared] | 14 | #[shared] |
| @@ -28,7 +28,7 @@ mod app { | |||
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | #[task(priority = 1)] | 30 | #[task(priority = 1)] |
| 31 | async fn blink(_cx: blink::Context, pin: peripherals::P0_13) { | 31 | async fn blink(_cx: blink::Context, pin: Peri<'static, peripherals::P0_13>) { |
| 32 | let mut led = Output::new(pin, Level::Low, OutputDrive::Standard); | 32 | let mut led = Output::new(pin, Level::Low, OutputDrive::Standard); |
| 33 | 33 | ||
| 34 | loop { | 34 | loop { |
