diff options
author | 2020-10-05 21:57:44 +0200 | |
---|---|---|
committer | 2020-10-05 21:57:44 +0200 | |
commit | 6bd168d711cd6304af72a106bb98f0cbebff0742 (patch) | |
tree | 7a97817c737b3c7a101a63a5be5cc368e7899d3f /macros/src/codegen/software_tasks.rs | |
parent | 4eb4c4e7b21402de7294670116da77475f48e0a2 (diff) | |
download | rtic-6bd168d711cd6304af72a106bb98f0cbebff0742.tar.gz rtic-6bd168d711cd6304af72a106bb98f0cbebff0742.tar.zst rtic-6bd168d711cd6304af72a106bb98f0cbebff0742.zip |
spawn POC works, likely unsound
Diffstat (limited to 'macros/src/codegen/software_tasks.rs')
-rw-r--r-- | macros/src/codegen/software_tasks.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/macros/src/codegen/software_tasks.rs b/macros/src/codegen/software_tasks.rs index 4ae37e4e..b240d7aa 100644 --- a/macros/src/codegen/software_tasks.rs +++ b/macros/src/codegen/software_tasks.rs @@ -54,7 +54,7 @@ pub fn codegen( mod_app.push(quote!( /// Queue version of a free-list that keeps track of empty slots in /// the following buffers - static mut #fq: #fq_ty = #fq_expr; + pub static mut #fq: #fq_ty = #fq_expr; )); // Generate a resource proxy if needed @@ -88,7 +88,7 @@ pub fn codegen( mod_app.push(quote!( #uninit /// Buffer that holds the instants associated to the inputs of a task - static mut #instants: + pub static mut #instants: [core::mem::MaybeUninit<<#m as rtic::Monotonic>::Instant>; #cap_lit] = [#(#elems,)*]; )); @@ -99,7 +99,7 @@ pub fn codegen( mod_app.push(quote!( #uninit /// Buffer that holds the inputs of a task - static mut #inputs: [core::mem::MaybeUninit<#input_ty>; #cap_lit] = + pub static mut #inputs: [core::mem::MaybeUninit<#input_ty>; #cap_lit] = [#(#elems,)*]; )); } @@ -161,6 +161,7 @@ pub fn codegen( Context::SoftwareTask(name), needs_lt, app, + analysis, extra, )); } |