diff options
author | 2020-10-21 20:20:26 +0200 | |
---|---|---|
committer | 2020-10-21 20:25:13 +0200 | |
commit | f076b33bb91e9cd2cb1f71ba22ebfebab085d3a8 (patch) | |
tree | f5b3ca8705ee1038365a4b8744f650dbceabad01 /macros/src/codegen/software_tasks.rs | |
parent | f96b25fdf2d7421cc16830a4ccac4ebb3e69cc5d (diff) | |
download | rtic-f076b33bb91e9cd2cb1f71ba22ebfebab085d3a8.tar.gz rtic-f076b33bb91e9cd2cb1f71ba22ebfebab085d3a8.tar.zst rtic-f076b33bb91e9cd2cb1f71ba22ebfebab085d3a8.zip |
Namespace cleanup
Diffstat (limited to 'macros/src/codegen/software_tasks.rs')
-rw-r--r-- | macros/src/codegen/software_tasks.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macros/src/codegen/software_tasks.rs b/macros/src/codegen/software_tasks.rs index f5757a12..323060c4 100644 --- a/macros/src/codegen/software_tasks.rs +++ b/macros/src/codegen/software_tasks.rs @@ -50,7 +50,7 @@ pub fn codegen( mod_app.push(quote!( /// Queue version of a free-list that keeps track of empty slots in /// the following buffers - pub static mut #fq: #fq_ty = #fq_expr; + static mut #fq: #fq_ty = #fq_expr; )); let ref elems = (0..cap) @@ -64,7 +64,7 @@ pub fn codegen( mod_app.push(quote!( #uninit /// Buffer that holds the instants associated to the inputs of a task - pub static mut #instants: + static mut #instants: [core::mem::MaybeUninit<<#m as rtic::Monotonic>::Instant>; #cap_lit] = [#(#elems,)*]; )); @@ -75,7 +75,7 @@ pub fn codegen( mod_app.push(quote!( #uninit /// Buffer that holds the inputs of a task - pub static mut #inputs_ident: [core::mem::MaybeUninit<#input_ty>; #cap_lit] = + static mut #inputs_ident: [core::mem::MaybeUninit<#input_ty>; #cap_lit] = [#(#elems,)*]; )); @@ -113,7 +113,7 @@ pub fn codegen( #(#attrs)* #(#cfgs)* #[allow(non_snake_case)] - pub fn #name(#(#locals_pat,)* #context: #name::Context #(,#inputs)*) { + fn #name(#(#locals_pat,)* #context: #name::Context #(,#inputs)*) { use rtic::Mutex as _; #(#stmts)* |