From 06ddfb7ab8d04fa519bf66a40ec7a98a5e04aa07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20C=C3=A1rdenas?= Date: Mon, 20 Mar 2023 07:59:42 +0100 Subject: [PATCH] explicit rtic::export::pend on macros --- rtic-macros/src/codegen/async_dispatchers.rs | 2 +- rtic-macros/src/codegen/module.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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!() };