aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/hardware_tasks.rs
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2020-10-01 16:17:15 +0000
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2020-10-01 16:22:37 +0000
commit96e6350c0dfae37c3ea8032b4cc3113e37323ae5 (patch)
tree691fc3ebe5ddd08cb3a8552645e3b3648bd104e3 /macros/src/codegen/hardware_tasks.rs
parentb4ec6f5eff212dee6aa1523653262980bc676c3f (diff)
downloadrtic-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.rs10
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)
}
ption value='fix/import-ts-errors'>fix/import-ts-errors Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/examples/blog (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2024-10-31[ci] release (#12290)astro@4.16.8@astrojs/mdx@3.1.9Gravatar Houston (Bot) 1-2/+2
2024-10-31Fix cli command typo (#12342)Gravatar liruifengv 2-1/+6
2024-10-31[ci] formatGravatar situ2001 1-1/+1
2024-10-31fix(cli): reset `NODE_ENV` to ensure install command run in dev mode (#12338)Gravatar situ2001 2-1/+12
2024-10-30fix(i18n): default locale in server islands (#12341)Gravatar Emanuele Stoppa 9-5/+61