aboutsummaryrefslogtreecommitdiff
path: root/rtic-macros/src/codegen/hardware_tasks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rtic-macros/src/codegen/hardware_tasks.rs')
-rw-r--r--rtic-macros/src/codegen/hardware_tasks.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/rtic-macros/src/codegen/hardware_tasks.rs b/rtic-macros/src/codegen/hardware_tasks.rs
index 2c5254e9..ee85f59f 100644
--- a/rtic-macros/src/codegen/hardware_tasks.rs
+++ b/rtic-macros/src/codegen/hardware_tasks.rs
@@ -2,7 +2,7 @@ use crate::syntax::{ast::App, Context};
use crate::{
analyze::Analysis,
codegen::{
- bindings::{interrupt_entry, interrupt_exit},
+ bindings::{interrupt_entry, interrupt_exit, handler_config},
local_resources_struct, module, shared_resources_struct,
},
};
@@ -22,12 +22,14 @@ pub fn codegen(app: &App, analysis: &Analysis) -> TokenStream2 {
let attrs = &task.attrs;
let entry_stmts = interrupt_entry(app, analysis);
let exit_stmts = interrupt_exit(app, analysis);
+ let config = handler_config(app, analysis, symbol.clone());
mod_app.push(quote!(
#[allow(non_snake_case)]
#[no_mangle]
#(#attrs)*
#(#cfgs)*
+ #(#config)*
unsafe fn #symbol() {
#(#entry_stmts)*