aboutsummaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
authorGravatar Per Lindgren <per.lindgren@ltu.se> 2019-09-28 21:32:48 +0200
committerGravatar Per Lindgren <per.lindgren@ltu.se> 2019-09-28 21:32:48 +0200
commite8d94cd8423b30ff0fb136066dba18c046198706 (patch)
tree0c354d3870ead2c64382f72fc2105f29d918c5a7 /macros/src
parent38306389ea4d8fadac8565e681887740912e14bd (diff)
downloadrtic-e8d94cd8423b30ff0fb136066dba18c046198706.tar.gz
rtic-e8d94cd8423b30ff0fb136066dba18c046198706.tar.zst
rtic-e8d94cd8423b30ff0fb136066dba18c046198706.zip
Lock Optimization RFC
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/codegen/hardware_tasks.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/macros/src/codegen/hardware_tasks.rs b/macros/src/codegen/hardware_tasks.rs
index a9c2a2bd..70bb3390 100644
--- a/macros/src/codegen/hardware_tasks.rs
+++ b/macros/src/codegen/hardware_tasks.rs
@@ -64,15 +64,11 @@ pub fn codegen(
#cfg_core
unsafe fn #symbol() {
const PRIORITY: u8 = #priority;
-
#let_instant
-
- rtfm::export::run(PRIORITY, || {
- crate::#name(
- #locals_new
- #name::Context::new(&rtfm::export::Priority::new(PRIORITY) #instant)
- )
- });
+ crate::#name(
+ #locals_new
+ #name::Context::new(&rtfm::export::Priority::new(PRIORITY) #instant)
+ );
}
));