mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
explicit rtic::export::pend on macros
This commit is contained in:
parent
216186cb60
commit
06ddfb7ab8
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> TokenStream2 {
|
||||||
let device = &app.args.device;
|
let device = &app.args.device;
|
||||||
let enum_ = util::interrupt_ident();
|
let enum_ = util::interrupt_ident();
|
||||||
|
|
||||||
quote!(rtic::pend(#device::#enum_::#dispatcher_name);)
|
quote!(rtic::export::pend(#device::#enum_::#dispatcher_name);)
|
||||||
} else {
|
} else {
|
||||||
// For 0 priority tasks we don't need to pend anything
|
// For 0 priority tasks we don't need to pend anything
|
||||||
quote!()
|
quote!()
|
||||||
|
|
|
@ -141,7 +141,7 @@ pub fn codegen(ctxt: Context, app: &App, analysis: &Analysis) -> TokenStream2 {
|
||||||
let device = &app.args.device;
|
let device = &app.args.device;
|
||||||
let enum_ = util::interrupt_ident();
|
let enum_ = util::interrupt_ident();
|
||||||
let interrupt = &analysis.interrupts.get(&priority).expect("UREACHABLE").0;
|
let interrupt = &analysis.interrupts.get(&priority).expect("UREACHABLE").0;
|
||||||
quote!(rtic::pend(#device::#enum_::#interrupt);)
|
quote!(rtic::export::pend(#device::#enum_::#interrupt);)
|
||||||
} else {
|
} else {
|
||||||
quote!()
|
quote!()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue