explicit rtic::export::pend on macros

This commit is contained in:
Román Cárdenas 2023-03-20 07:59:42 +01:00
parent 216186cb60
commit 06ddfb7ab8
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> TokenStream2 {
let device = &app.args.device;
let enum_ = util::interrupt_ident();
quote!(rtic::pend(#device::#enum_::#dispatcher_name);)
quote!(rtic::export::pend(#device::#enum_::#dispatcher_name);)
} else {
// For 0 priority tasks we don't need to pend anything
quote!()

View file

@ -141,7 +141,7 @@ pub fn codegen(ctxt: Context, app: &App, analysis: &Analysis) -> TokenStream2 {
let device = &app.args.device;
let enum_ = util::interrupt_ident();
let interrupt = &analysis.interrupts.get(&priority).expect("UREACHABLE").0;
quote!(rtic::pend(#device::#enum_::#interrupt);)
quote!(rtic::export::pend(#device::#enum_::#interrupt);)
} else {
quote!()
};