diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-01-13 21:24:06 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-01-13 23:56:39 +0100 |
| commit | c432d036c78480303827d832db3611cc7d2680f5 (patch) | |
| tree | b291b88297d1f89258ad20064f32e0868eb08b53 /examples | |
| parent | 3ca01cba8d2ffbd6f7479b436f4384f002a381eb (diff) | |
nrf/gpiote: expose all functionality as inherent methods.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/nrf/src/bin/gpiote_port.rs | 1 | ||||
| -rw-r--r-- | examples/nrf/src/bin/wdt.rs | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/examples/nrf/src/bin/gpiote_port.rs b/examples/nrf/src/bin/gpiote_port.rs index 76c861d95..3ea9a6e67 100644 --- a/examples/nrf/src/bin/gpiote_port.rs +++ b/examples/nrf/src/bin/gpiote_port.rs | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | mod example_common; | 6 | mod example_common; |
| 7 | 7 | ||
| 8 | use embassy::executor::Spawner; | 8 | use embassy::executor::Spawner; |
| 9 | use embassy::traits::gpio::{WaitForHigh, WaitForLow}; | ||
| 10 | use embassy_nrf::gpio::{AnyPin, Input, Pin as _, Pull}; | 9 | use embassy_nrf::gpio::{AnyPin, Input, Pin as _, Pull}; |
| 11 | use embassy_nrf::Peripherals; | 10 | use embassy_nrf::Peripherals; |
| 12 | use example_common::*; | 11 | use example_common::*; |
diff --git a/examples/nrf/src/bin/wdt.rs b/examples/nrf/src/bin/wdt.rs index 78c2205d9..cc199be9d 100644 --- a/examples/nrf/src/bin/wdt.rs +++ b/examples/nrf/src/bin/wdt.rs | |||
| @@ -10,7 +10,6 @@ use embassy::executor::Spawner; | |||
| 10 | use embassy_nrf::gpio::{Input, Pull}; | 10 | use embassy_nrf::gpio::{Input, Pull}; |
| 11 | use embassy_nrf::wdt::{Config, Watchdog}; | 11 | use embassy_nrf::wdt::{Config, Watchdog}; |
| 12 | use embassy_nrf::Peripherals; | 12 | use embassy_nrf::Peripherals; |
| 13 | use embassy_traits::gpio::{WaitForHigh, WaitForLow}; | ||
| 14 | 13 | ||
| 15 | #[embassy::main] | 14 | #[embassy::main] |
| 16 | async fn main(_spawner: Spawner, p: Peripherals) { | 15 | async fn main(_spawner: Spawner, p: Peripherals) { |
