diff --git a/rtic-macros/src/codegen/async_dispatchers.rs b/rtic-macros/src/codegen/async_dispatchers.rs index bdbfeaa7a2..289a63b57e 100644 --- a/rtic-macros/src/codegen/async_dispatchers.rs +++ b/rtic-macros/src/codegen/async_dispatchers.rs @@ -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!() diff --git a/rtic-macros/src/codegen/module.rs b/rtic-macros/src/codegen/module.rs index af4e034679..cf066ef973 100644 --- a/rtic-macros/src/codegen/module.rs +++ b/rtic-macros/src/codegen/module.rs @@ -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!() };