diff options
author | 2023-01-08 21:10:06 +0100 | |
---|---|---|
committer | 2023-03-01 00:33:28 +0100 | |
commit | 6d252785e83218eeb5d080836281c90b86ca0e03 (patch) | |
tree | 7220026f04871b30fa01d3ddddd5d40c87f89f8b /macros/src/codegen/util.rs | |
parent | 35c97b61c17a30de675eb1c7f852a100b200a0c2 (diff) | |
download | rtic-6d252785e83218eeb5d080836281c90b86ca0e03.tar.gz rtic-6d252785e83218eeb5d080836281c90b86ca0e03.tar.zst rtic-6d252785e83218eeb5d080836281c90b86ca0e03.zip |
Support 0 prio tasks
Diffstat (limited to 'macros/src/codegen/util.rs')
-rw-r--r-- | macros/src/codegen/util.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs index a071ca27..6552839f 100644 --- a/macros/src/codegen/util.rs +++ b/macros/src/codegen/util.rs @@ -187,6 +187,10 @@ pub fn need_to_lock_ident(name: &Ident) -> Ident { Ident::new(&format!("{}_that_needs_to_be_locked", name), name.span()) } +pub fn zero_prio_dispatcher_ident() -> Ident { + Ident::new("__rtic_internal_async_0_prio_dispatcher", Span::call_site()) +} + /// The name to get better RT flag errors pub fn rt_err_ident() -> Ident { Ident::new( |