summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2021-08-18 23:35:38 +0200
committerGitHub <noreply@github.com>2021-08-18 23:35:38 +0200
commit1094ac4d82c9c8eab75d3199a7da4e8db6d096b9 (patch)
tree4ed8cc1b52ca5f5ec1191f028f696b31f304a4d5 /examples
parent29211a57b49b7c7b80a54ccd35336adff001f6b2 (diff)
downloadnrf-softdevice-1094ac4d82c9c8eab75d3199a7da4e8db6d096b9.zip
Update rust, embassy, PACs. Add support for nrf52805, 820. (#77)
Diffstat (limited to 'examples')
-rw-r--r--examples/src/bin/ble_peripheral_onoff.rs1
-rw-r--r--examples/src/example_common.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/examples/src/bin/ble_peripheral_onoff.rs b/examples/src/bin/ble_peripheral_onoff.rs
index 1d9e95b..e3f3943 100644
--- a/examples/src/bin/ble_peripheral_onoff.rs
+++ b/examples/src/bin/ble_peripheral_onoff.rs
@@ -126,6 +126,7 @@ fn main() -> ! {
let mut config = embassy_nrf::config::Config::default();
config.gpiote_interrupt_priority = Priority::P2;
+ config.time_interrupt_priority = Priority::P2;
let p = embassy_nrf::init(config);
let config = nrf_softdevice::Config {
diff --git a/examples/src/example_common.rs b/examples/src/example_common.rs
index 503e67a..ba6eef0 100644
--- a/examples/src/example_common.rs
+++ b/examples/src/example_common.rs
@@ -3,6 +3,8 @@
use nrf_softdevice_defmt_rtt as _; // global logger
use panic_probe as _;
+use embassy_nrf as _;
+
use alloc_cortex_m::CortexMHeap;
use core::alloc::Layout;
use core::sync::atomic::{AtomicUsize, Ordering};