mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
compiler plugin -> proc macro
This commit is contained in:
parent
8485a24d36
commit
59afbf02aa
5 changed files with 12 additions and 46 deletions
|
|
@ -100,7 +100,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) {
|
|||
exceptions.push(quote! {
|
||||
let prio_bits = #device::NVIC_PRIO_BITS;
|
||||
let hw = ((1 << prio_bits) - #priority) << (8 - prio_bits);
|
||||
scb.shpr[rtfm::Exception::#name.nr() - 4].write(hw);
|
||||
scb.shpr[#krate::Exception::#name.nr() - 4].write(hw);
|
||||
});
|
||||
}
|
||||
Kind::Interrupt { enabled } => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue