nrf-softdevice
nrf-softdevice copied to clipboard
enable() hardfaults if interrupts are disabled.
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.
We could use https://docs.rs/cortex-m/0.6.3/cortex_m/peripheral/struct.NVIC.html#method.is_enabled on the required interrupts.