aboutsummaryrefslogtreecommitdiff
path: root/rtic-macros/src
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2023-03-29 21:18:17 +0200
committerGravatar GitHub <noreply@github.com> 2023-03-29 21:18:17 +0200
commit064cf19265f72d7f01e0847c545e6250391a2172 (patch)
treee17930b11f05f3bfaba59f3e579dd4f49aae4b91 /rtic-macros/src
parent31055fa64a6e178caa45f8a8e862ded6a68d3e55 (diff)
parentce508a1882b1cc8735c4fd901a0ad868da5fe77b (diff)
downloadrtic-064cf19265f72d7f01e0847c545e6250391a2172.tar.gz
rtic-064cf19265f72d7f01e0847c545e6250391a2172.tar.zst
rtic-064cf19265f72d7f01e0847c545e6250391a2172.zip
Merge pull request #709 from romancardenas/master
cortex-m as optional dependency
Diffstat (limited to 'rtic-macros/src')
-rw-r--r--rtic-macros/src/codegen/async_dispatchers.rs2
-rw-r--r--rtic-macros/src/codegen/module.rs2
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!()
};