diff options
author | 2021-02-21 21:57:18 +0100 | |
---|---|---|
committer | 2021-02-21 21:57:18 +0100 | |
commit | 1345f30a692843485208b2ecf2866010423d2f02 (patch) | |
tree | fe47816884ae283aba23451ecf670fb0d4dbd89e /macros/src | |
parent | 1a46345a2aa710c4ec5ea8fb6589424bc4450d0f (diff) | |
download | rtic-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.rs | 4 |
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(); + }); } )); } |