mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 22:35:19 +01:00
Updated codegen for the updated syntax (default monotonic priority)
This commit is contained in:
parent
380a20859c
commit
9a0d27a91e
2 changed files with 6 additions and 2 deletions
|
|
@ -83,7 +83,11 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream
|
|||
|
||||
// Initialize monotonic's interrupts
|
||||
for (_, monotonic) in &app.monotonics {
|
||||
let priority = &monotonic.args.priority;
|
||||
let priority = if let Some(prio) = monotonic.args.priority {
|
||||
quote! { #prio }
|
||||
} else {
|
||||
quote! { (1 << #nvic_prio_bits) }
|
||||
};
|
||||
let binds = &monotonic.args.binds;
|
||||
|
||||
// Compile time assert that this priority is supported by the device
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue