-
Notifications
You must be signed in to change notification settings - Fork 150
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
Unclear how to use #[interrupt]
macro without deprecated --reexport-interrupt
flag
#830
Comments
There have been planned some changes in |
I also stumbled into the issue, wondering why I could not use the |
You can use it without the flag. But you have to import your PAC's Interrupt enum as use hal::pac::Interrupt as interrupt;
use cortex_m_rt::interrupt; That's basically what the |
According to the documentation of
svd2rust
, the--reexport-interrupt
flag is deprecated. However according to the documentation ofcortex-m-rt
, the#[interrupt]
macro should only be used via thesvd2rust
reexport, and indeed it fails to compile when used directly, with a confusing error.How is the interrupt macro supposed to be used without the
--reexport-interrupt
flag passed tosvd2rust
? This should at least be documented clearly in thesvd2rust
documentation.The text was updated successfully, but these errors were encountered: