nrf-softdevice icon indicating copy to clipboard operation
nrf-softdevice copied to clipboard

enable() hardfaults if interrupts are disabled.

Open Dirbaio opened this issue 5 years ago • 1 comments

As seen in #16, sd_softdevice_enable HardFaults if interrupts are disabled.

It'd be cool to detect that and panic with a human-friendly error message so the user can figure out what's wrong.

Dirbaio avatar Sep 14 '20 01:09 Dirbaio

We could use https://docs.rs/cortex-m/0.6.3/cortex_m/peripheral/struct.NVIC.html#method.is_enabled on the required interrupts.

kuon avatar Sep 14 '20 11:09 kuon