diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-04 19:12:35 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-04 19:12:35 +0000 |
| commit | 89a5c8004efaa8f42c86a1aedb609f49ec511333 (patch) | |
| tree | 6db5b553e24a540284edc3f3fbf87043c638defc /macros/src/codegen/hardware_tasks.rs | |
| parent | 81a8a591353b1ea0208c68b28ee81286629039cc (diff) | |
| parent | 2e4a4ffd87c8a031f27635c060042019511523dc (diff) | |
Merge #436
436: New monotonic r=AfoHT a=korken89
Design document: https://hackmd.io/vWa9GvssR8qBfUYgMZm0CQ
Closes #433
Closes #432
Closes #427
Closes #426
Closes #403
Closes #332
Closes #312
Closes #309
Closes #299
Closes #292
Closes #247
Closes #219
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'macros/src/codegen/hardware_tasks.rs')
| -rw-r--r-- | macros/src/codegen/hardware_tasks.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/macros/src/codegen/hardware_tasks.rs b/macros/src/codegen/hardware_tasks.rs index 6930d3e..4a1d749 100644 --- a/macros/src/codegen/hardware_tasks.rs +++ b/macros/src/codegen/hardware_tasks.rs @@ -29,15 +29,6 @@ pub fn codegen( let mut user_tasks = vec![]; for (name, task) in &app.hardware_tasks { - let (let_instant, instant) = if let Some(ref m) = extra.monotonic { - ( - Some(quote!(let instant = <#m as rtic::Monotonic>::now();)), - Some(quote!(, instant)), - ) - } else { - (None, None) - }; - let locals_new = if task.locals.is_empty() { quote!() } else { @@ -55,12 +46,10 @@ pub fn codegen( unsafe fn #symbol() { const PRIORITY: u8 = #priority; - #let_instant - rtic::export::run(PRIORITY, || { #app_path::#name( #locals_new - #name::Context::new(&rtic::export::Priority::new(PRIORITY) #instant) + #name::Context::new(&rtic::export::Priority::new(PRIORITY)) ) }); } |
