summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2021-05-26 13:01:12 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2021-05-26 13:01:12 +0200
commitac73efb2d38735cb2a59ccce476d4dc7d232124b (patch)
tree7928298629f9fbf2ef3c9d91c97bac7020b6a238 /examples
parentb4ecd6659a3bace44b83fb702c86e560dd1d55c7 (diff)
downloadnrf-softdevice-ac73efb2d38735cb2a59ccce476d4dc7d232124b.zip
Set correct RTC IRQ priority.
Diffstat (limited to 'examples')
-rw-r--r--examples/src/bin/ble_peripheral_onoff.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/src/bin/ble_peripheral_onoff.rs b/examples/src/bin/ble_peripheral_onoff.rs
index 1caf4f6..f61d1b3 100644
--- a/examples/src/bin/ble_peripheral_onoff.rs
+++ b/examples/src/bin/ble_peripheral_onoff.rs
@@ -17,6 +17,7 @@ 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;
use nrf_softdevice::ble::{gatt_server, peripheral};
@@ -125,7 +126,9 @@ async fn bluetooth_task(sd: &'static Softdevice, button1: AnyPin, button2: AnyPi
fn main() -> ! {
info!("Hello World!");
- let p = embassy_nrf::init(embassy_nrf::config::Config::default());
+ let mut config = embassy_nrf::config::Config::default();
+ config.gpiote_interrupt_priority = Priority::P2;
+ let p = embassy_nrf::init(config);
let config = nrf_softdevice::Config {
clock: Some(raw::nrf_clock_lf_cfg_t {