aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/util.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2021-04-07 12:01:18 +0000
committerGravatar GitHub <noreply@github.com> 2021-04-07 12:01:18 +0000
commit6c8257bb73de0f68072467447692a1f7dff555f9 (patch)
tree815ee7267e0661532f9c3ad13021b5293efd994f /macros/src/codegen/util.rs
parent3c86d713a6f8fdb052de80380a17468090e42624 (diff)
parentae691952c328757113047bf696e934316789b844 (diff)
downloadrtic-6c8257bb73de0f68072467447692a1f7dff555f9.tar.gz
rtic-6c8257bb73de0f68072467447692a1f7dff555f9.tar.zst
rtic-6c8257bb73de0f68072467447692a1f7dff555f9.zip
Merge #456
456: Cancel/reschedule support for monotonics r=AfoHT a=korken89 Design document: https://hackmd.io/lhUCzrKBS-66aadO4KsSzw?view Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'macros/src/codegen/util.rs')
-rw-r--r--macros/src/codegen/util.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs
index 6589f62d..9ccdbf78 100644
--- a/macros/src/codegen/util.rs
+++ b/macros/src/codegen/util.rs
@@ -89,6 +89,11 @@ pub fn interrupt_ident() -> Ident {
Ident::new("interrupt", span)
}
+pub fn timer_queue_marker_ident() -> Ident {
+ let span = Span::call_site();
+ Ident::new("TIMER_QUEUE_MARKER", span)
+}
+
/// Whether `name` is an exception with configurable priority
pub fn is_exception(name: &Ident) -> bool {
let s = name.to_string();