-
Notifications
You must be signed in to change notification settings - Fork 138
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
How to configure the NVIC registers #466
Comments
In v0.7 of These methods don't require an instance of the NVIC peripheral (e.g., after calling use cortex_m::peripheral::NVIC;
use rp2040_pac::Interrupts;
if !NVIC::is_enabled(Interrupts::SPI0_IRQ) {
unsafe { NVIC::unmask(Interrupts::SPI0_IRQ) };
} Double check the safety docs for |
Is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi guys,
I am relatively new to working with the cortex-m crate.
I am working on debugging a spi slave implementation and would like to check whether or not my SPI0_IRQ is enabled in the ISER register, and if not, I will enable it.
I based my work off the examples/device.rs project,
where the following does what I would desire.
let nvic = p.NVIC; nvic.enable(Interrupts::SPI0_IRQ);
However, i find that the function "enable" does not exist.
I am working in the RTIC environment with an RP2040.
I try:
let mut nvic = c.core.NVIC; nvic::enable(Interrupt::SPI0_IRQ);
Is there a new way to interact with the NVIC, or am I missing something?
Thanks in advance
The text was updated successfully, but these errors were encountered: