diff options
Diffstat (limited to 'examples/src/bin/interrupts.rs')
-rw-r--r-- | examples/src/bin/interrupts.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/src/bin/interrupts.rs b/examples/src/bin/interrupts.rs index 8600d37..91454a1 100644 --- a/examples/src/bin/interrupts.rs +++ b/examples/src/bin/interrupts.rs @@ -87,7 +87,8 @@ fn SWI1_EGU1() { fn main() -> ! { info!("Hello World!"); - let sd = Softdevice::enable(&Default::default()); + let (sdp, p) = take_peripherals(); + let sd = Softdevice::enable(sdp, &Default::default()); let executor = EXECUTOR.put(Executor::new(cortex_m::asm::sev)); executor.spawn(softdevice_task(sd)).dewrap(); |