diff options
author | 2020-10-01 16:17:15 +0000 | |
---|---|---|
committer | 2020-10-01 16:22:37 +0000 | |
commit | 96e6350c0dfae37c3ea8032b4cc3113e37323ae5 (patch) | |
tree | 691fc3ebe5ddd08cb3a8552645e3b3648bd104e3 /macros/src/codegen/hardware_tasks.rs | |
parent | b4ec6f5eff212dee6aa1523653262980bc676c3f (diff) | |
download | rtic-96e6350c0dfae37c3ea8032b4cc3113e37323ae5.tar.gz rtic-96e6350c0dfae37c3ea8032b4cc3113e37323ae5.tar.zst rtic-96e6350c0dfae37c3ea8032b4cc3113e37323ae5.zip |
Rename const_app to mod_app
Diffstat (limited to 'macros/src/codegen/hardware_tasks.rs')
-rw-r--r-- | macros/src/codegen/hardware_tasks.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/src/codegen/hardware_tasks.rs b/macros/src/codegen/hardware_tasks.rs index a03fd779..25f1df41 100644 --- a/macros/src/codegen/hardware_tasks.rs +++ b/macros/src/codegen/hardware_tasks.rs @@ -14,7 +14,7 @@ pub fn codegen( analysis: &Analysis, extra: &Extra, ) -> ( - // const_app_hardware_tasks -- interrupt handlers and `${task}Resources` constructors + // mod_app_hardware_tasks -- interrupt handlers and `${task}Resources` constructors Vec<TokenStream2>, // root_hardware_tasks -- items that must be placed in the root of the crate: // - `${task}Locals` structs @@ -26,7 +26,7 @@ pub fn codegen( // user_hardware_tasks_imports -- the imports for `#[task]` functions written by the user Vec<TokenStream2>, ) { - let mut const_app = vec![]; + let mut mod_app = vec![]; let mut root = vec![]; let mut user_tasks = vec![]; let mut hardware_tasks_imports = vec![]; @@ -52,7 +52,7 @@ pub fn codegen( let symbol = task.args.binds.clone(); let priority = task.args.priority; - const_app.push(quote!( + mod_app.push(quote!( #[allow(non_snake_case)] #[no_mangle] unsafe fn #symbol() { @@ -90,7 +90,7 @@ pub fn codegen( root.push(item); - const_app.push(constructor); + mod_app.push(constructor); } root.push(module::codegen( @@ -130,5 +130,5 @@ pub fn codegen( )); } - (const_app, root, user_tasks, hardware_tasks_imports) + (mod_app, root, user_tasks, hardware_tasks_imports) } |