diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-03-11 20:18:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-11 20:18:58 +0000 |
| commit | 534d42edf5505950a87f2621df883ceac4957156 (patch) | |
| tree | 1636806eebc89750e199ebaa5e021d83041a01cd /rtic-monotonics/src/lib.rs | |
| parent | dd899ab77f3d95ebb04fb8b02eadf6275d7524ac (diff) | |
| parent | e4d9284e258a34b10cac2eff47ca2ccb470b460c (diff) | |
Merge #702
702: Monotonics interrupt token r=AfoHT a=korken89
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
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 a4a1f42..6143fd0 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> {} |
