diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2021-02-21 21:57:18 +0100 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2021-02-21 21:57:18 +0100 |
| commit | 1345f30a692843485208b2ecf2866010423d2f02 (patch) | |
| tree | fe47816884ae283aba23451ecf670fb0d4dbd89e /macros/src/codegen | |
| parent | 1a46345a2aa710c4ec5ea8fb6589424bc4450d0f (diff) | |
Properly call `on_interrupt`
Diffstat (limited to 'macros/src/codegen')
| -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 6556068..ea2fee6 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(); + }); } )); } |
