diff options
author | 2023-03-20 07:59:42 +0100 | |
---|---|---|
committer | 2023-03-20 07:59:42 +0100 | |
commit | 06ddfb7ab8d04fa519bf66a40ec7a98a5e04aa07 (patch) | |
tree | af936f7566b961ffe6ceb29a7029428f575c7b54 | |
parent | 216186cb6025de0901757ea583c0d27085e42eff (diff) | |
download | rtic-06ddfb7ab8d04fa519bf66a40ec7a98a5e04aa07.tar.gz rtic-06ddfb7ab8d04fa519bf66a40ec7a98a5e04aa07.tar.zst rtic-06ddfb7ab8d04fa519bf66a40ec7a98a5e04aa07.zip |
explicit rtic::export::pend on macros
-rw-r--r-- | rtic-macros/src/codegen/async_dispatchers.rs | 2 | ||||
-rw-r--r-- | 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 bdbfeaa7..289a63b5 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 af4e0346..cf066ef9 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!() }; |