diff options
author | Timo Kröger <timo.kroeger@hitachienergy.com> | 2021-12-22 13:05:46 +0100 |
---|---|---|
committer | Timo Kröger <timo.kroeger@hitachienergy.com> | 2021-12-22 13:05:46 +0100 |
commit | 716f03010469cb1a5212fd12764f314ce1e7bcc9 (patch) | |
tree | d8d53b0902859e3bc1ed68d89cd46f34dd257279 /examples | |
parent | f81a201211d63a994528e69b1c5a224be9b53f85 (diff) | |
download | nrf-softdevice-716f03010469cb1a5212fd12764f314ce1e7bcc9.zip |
Update dependencies to latest embassy git version
Diffstat (limited to 'examples')
-rw-r--r-- | examples/src/bin/ble_l2cap_central.rs | 3 | ||||
-rw-r--r-- | examples/src/bin/ble_peripheral_onoff.rs | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/examples/src/bin/ble_l2cap_central.rs b/examples/src/bin/ble_l2cap_central.rs index 4a1817e..2fb1f87 100644 --- a/examples/src/bin/ble_l2cap_central.rs +++ b/examples/src/bin/ble_l2cap_central.rs @@ -12,8 +12,7 @@ use core::mem; use core::ptr::NonNull; use core::slice; use cortex_m_rt::entry; -use defmt::info; -use defmt::{unreachable, *}; +use defmt::{info, *}; use embassy::executor::Executor; use embassy::util::Forever; diff --git a/examples/src/bin/ble_peripheral_onoff.rs b/examples/src/bin/ble_peripheral_onoff.rs index 32eac93..3ccd110 100644 --- a/examples/src/bin/ble_peripheral_onoff.rs +++ b/examples/src/bin/ble_peripheral_onoff.rs @@ -14,7 +14,6 @@ use embassy::executor::Executor; use embassy::traits::gpio::WaitForLow; use embassy::util::Forever; use embassy_nrf::gpio::{AnyPin, Input, Pin as _, Pull}; -use embassy_nrf::gpiote::PortInput; use embassy_nrf::interrupt::Priority; use futures::pin_mut; @@ -87,8 +86,8 @@ async fn bluetooth_task(sd: &'static Softdevice, button1: AnyPin, button2: AnyPi info!("Bluetooth is OFF"); info!("Press nrf52840-dk button 1 to enable, button 2 to disable"); - let button1 = PortInput::new(Input::new(button1, Pull::Up)); - let button2 = PortInput::new(Input::new(button2, Pull::Up)); + let button1 = Input::new(button1, Pull::Up); + let button2 = Input::new(button2, Pull::Up); pin_mut!(button1); pin_mut!(button2); loop { |