diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2021-04-07 11:06:57 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2021-04-08 09:15:38 +0200 |
| commit | 2068eae9280881e34b5cc2d76b0b1a61402223e7 (patch) | |
| tree | 21b4fa3bb6f5bac8f9430758a39140b40d6bcdfd /macros/src/codegen/hardware_tasks.rs | |
| parent | 6c8257bb73de0f68072467447692a1f7dff555f9 (diff) | |
Type aliases now work in the app module
Diffstat (limited to 'macros/src/codegen/hardware_tasks.rs')
| -rw-r--r-- | macros/src/codegen/hardware_tasks.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/macros/src/codegen/hardware_tasks.rs b/macros/src/codegen/hardware_tasks.rs index 4a1d749..540b95e 100644 --- a/macros/src/codegen/hardware_tasks.rs +++ b/macros/src/codegen/hardware_tasks.rs @@ -37,12 +37,16 @@ pub fn codegen( let symbol = task.args.binds.clone(); let priority = task.args.priority; + let cfgs = &task.cfgs; + let attrs = &task.attrs; let app_name = &app.name; let app_path = quote! {crate::#app_name}; mod_app.push(quote!( #[allow(non_snake_case)] #[no_mangle] + #(#attrs)* + #(#cfgs)* unsafe fn #symbol() { const PRIORITY: u8 = #priority; |
