Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable() hardfaults if interrupts are disabled. #18

Open
Dirbaio opened this issue Sep 14, 2020 · 1 comment
Open

enable() hardfaults if interrupts are disabled. #18

Dirbaio opened this issue Sep 14, 2020 · 1 comment

Comments

@Dirbaio
Copy link
Member

Dirbaio commented Sep 14, 2020

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.

@kuon
Copy link

kuon commented Sep 14, 2020

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

@Dirbaio Dirbaio changed the title enable panics if interrupts are disabled. enable() hardfaults if interrupts are disabled. Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants