diff options
Diffstat (limited to 'rtic-monotonics/src/lib.rs')
-rw-r--r-- | rtic-monotonics/src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rtic-monotonics/src/lib.rs b/rtic-monotonics/src/lib.rs index a4a1f428..6143fd0e 100644 --- a/rtic-monotonics/src/lib.rs +++ b/rtic-monotonics/src/lib.rs @@ -13,3 +13,13 @@ pub mod systick; #[cfg(feature = "rp2040")] pub mod rp2040; + +/// This marker is implemented on an interrupt token to enforce that the right tokens +/// are given to the correct monotonic implementation. +/// +/// This trait is implemented by this crate and not intended for user implementation. +/// +/// # Safety +/// +/// This is only safely implemented by this crate. +pub unsafe trait InterruptToken<Periperhal> {} |