aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/util.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2023-01-07 11:24:13 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-01 00:31:06 +0100
commit714020a624ca93c42d5da7ebe612e7fc668e1471 (patch)
tree798716e0fd29d0b6235bb5bbec2dd11dba658ecc /macros/src/codegen/util.rs
parent53f3d397e76383deabbe9579a3522174c422a958 (diff)
downloadrtic-714020a624ca93c42d5da7ebe612e7fc668e1471.tar.gz
rtic-714020a624ca93c42d5da7ebe612e7fc668e1471.tar.zst
rtic-714020a624ca93c42d5da7ebe612e7fc668e1471.zip
Removed Priority, simplified lifetime handling
Diffstat (limited to 'macros/src/codegen/util.rs')
-rw-r--r--macros/src/codegen/util.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs
index aa720c0e..a071ca27 100644
--- a/macros/src/codegen/util.rs
+++ b/macros/src/codegen/util.rs
@@ -17,10 +17,10 @@ pub fn impl_mutex(
ceiling: u8,
ptr: &TokenStream2,
) -> TokenStream2 {
- let (path, priority) = if resources_prefix {
- (quote!(shared_resources::#name), quote!(self.priority()))
+ let path = if resources_prefix {
+ quote!(shared_resources::#name)
} else {
- (quote!(#name), quote!(self.priority))
+ quote!(#name)
};
let device = &app.args.device;
@@ -38,7 +38,6 @@ pub fn impl_mutex(
unsafe {
rtic::export::lock(
#ptr,
- #priority,
CEILING,
#device::NVIC_PRIO_BITS,
&#masks_name,