aboutsummaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2021-02-21 21:57:18 +0100
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2021-02-21 21:57:18 +0100
commit1345f30a692843485208b2ecf2866010423d2f02 (patch)
treefe47816884ae283aba23451ecf670fb0d4dbd89e /macros/src
parent1a46345a2aa710c4ec5ea8fb6589424bc4450d0f (diff)
downloadrtic-1345f30a692843485208b2ecf2866010423d2f02.tar.gz
rtic-1345f30a692843485208b2ecf2866010423d2f02.tar.zst
rtic-1345f30a692843485208b2ecf2866010423d2f02.zip
Properly call `on_interrupt`
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/codegen/timer_queue.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/macros/src/codegen/timer_queue.rs b/macros/src/codegen/timer_queue.rs
index 65560680..ea2fee66 100644
--- a/macros/src/codegen/timer_queue.rs
+++ b/macros/src/codegen/timer_queue.rs
@@ -136,6 +136,10 @@ pub fn codegen(app: &App, analysis: &Analysis, _extra: &Extra) -> Vec<TokenStrea
#(#arms)*
}
}
+
+ rtic::export::interrupt::free(|_| if let Some(mono) = #app_path::#m_ident.as_mut() {
+ mono.on_interrupt();
+ });
}
));
}