aboutsummaryrefslogtreecommitdiff
path: root/src/export.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2020-12-10 20:33:13 +0100
committerEmil Fresk <emil.fresk@gmail.com>2020-12-10 20:33:13 +0100
commit97a48983d2859740983cbf342e1287182426ed44 (patch)
tree77c9fb55d1ad9cd3fa2e9343397c56ba47928684 /src/export.rs
parentb23bb1192c8dc1f2e8f157db2147b1737abc1033 (diff)
More work
Diffstat (limited to 'src/export.rs')
-rw-r--r--src/export.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/export.rs b/src/export.rs
index dedff2f..080b1f6 100644
--- a/src/export.rs
+++ b/src/export.rs
@@ -16,6 +16,7 @@ pub use cortex_m::{
use heapless::spsc::SingleCore;
pub use heapless::{consts, i::Queue as iQueue, spsc::Queue};
pub use heapless::{i::BinaryHeap as iBinaryHeap, BinaryHeap};
+pub use rtic_core::monotonic::Monotonic;
pub type SCFQ<N> = Queue<u8, N, u8, SingleCore>;
pub type SCRQ<T, N> = Queue<(T, u8), N, u8, SingleCore>;
@@ -112,6 +113,13 @@ where
{
}
+#[inline(always)]
+pub fn assert_monotonic<T>()
+where
+ T: Monotonic,
+{
+}
+
/// Lock the resource proxy by setting the BASEPRI
/// and running the closure with interrupt::free
///