diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-06-18 10:31:31 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-06-18 10:31:31 +0200 |
| commit | 9897728709528a02545523bea72576abce89dc4c (patch) | |
| tree | 49619bfb8e3e09cccbc9c2bd1854abfe1618c8fd /macros/src/codegen/hardware_tasks.rs | |
| parent | 81275bfa4f41e2066770087f3a33cad4227eab41 (diff) | |
add homogeneous multi-core support
Diffstat (limited to 'macros/src/codegen/hardware_tasks.rs')
| -rw-r--r-- | macros/src/codegen/hardware_tasks.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/macros/src/codegen/hardware_tasks.rs b/macros/src/codegen/hardware_tasks.rs index e65bad5..e7f053d 100644 --- a/macros/src/codegen/hardware_tasks.rs +++ b/macros/src/codegen/hardware_tasks.rs @@ -49,7 +49,11 @@ pub fn codegen( quote!(#name::Locals::new(),) }; - let symbol = task.args.binds(name); + let symbol = if cfg!(feature = "homogeneous") { + util::suffixed(&task.args.binds(name).to_string(), core) + } else { + task.args.binds(name).clone() + }; let priority = task.args.priority; const_app.push(quote!( |
