aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/software_tasks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/src/codegen/software_tasks.rs')
-rw-r--r--macros/src/codegen/software_tasks.rs25
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);