diff options
author | 2020-12-08 20:49:13 +0100 | |
---|---|---|
committer | 2020-12-08 20:49:13 +0100 | |
commit | b23bb1192c8dc1f2e8f157db2147b1737abc1033 (patch) | |
tree | fa0f369feddc3bf838c74a3c5325c60735edc8ab /macros/src/codegen/software_tasks.rs | |
parent | ef50aeb2e8245b69843280fabb62589c0716ffdd (diff) | |
download | rtic-b23bb1192c8dc1f2e8f157db2147b1737abc1033.tar.gz rtic-b23bb1192c8dc1f2e8f157db2147b1737abc1033.tar.zst rtic-b23bb1192c8dc1f2e8f157db2147b1737abc1033.zip |
TQ handlers being generated
Diffstat (limited to 'macros/src/codegen/software_tasks.rs')
-rw-r--r-- | macros/src/codegen/software_tasks.rs | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/macros/src/codegen/software_tasks.rs b/macros/src/codegen/software_tasks.rs index 9cb5f7a9..7b884ead 100644 --- a/macros/src/codegen/software_tasks.rs +++ b/macros/src/codegen/software_tasks.rs @@ -57,18 +57,19 @@ pub fn codegen( .map(|_| quote!(core::mem::MaybeUninit::uninit())) .collect::<Vec<_>>(); - if let Some(m) = &extra.monotonic { - let instants = util::instants_ident(name); - - let uninit = mk_uninit(); - mod_app.push(quote!( - #uninit - /// Buffer that holds the instants associated to the inputs of a task - static mut #instants: - [core::mem::MaybeUninit<<#m as rtic::Monotonic>::Instant>; #cap_lit] = - [#(#elems,)*]; - )); - } + // TODO: Update for new monotonic + // if let Some(m) = &extra.monotonic { + // let instants = util::instants_ident(name); + + // let uninit = mk_uninit(); + // mod_app.push(quote!( + // #uninit + // /// Buffer that holds the instants associated to the inputs of a task + // static mut #instants: + // [core::mem::MaybeUninit<<#m as rtic::Monotonic>::Instant>; #cap_lit] = + // [#(#elems,)*]; + // )); + // } let uninit = mk_uninit(); let inputs_ident = util::inputs_ident(name); |