aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index acb3a63d..decd2da1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -117,7 +117,7 @@ impl From<cortex_m::Peripherals> for Peripherals {
}
/// A monotonic clock / counter
-pub unsafe trait Monotonic {
+pub trait Monotonic {
/// A measurement of this clock
type Instant: Copy + Ord + Sub;
@@ -134,6 +134,9 @@ pub unsafe trait Monotonic {
fn zero() -> Self::Instant;
}
+/// A marker trait that indicates that it is correct to use this type in multi-core context
+pub trait MultiCore {}
+
/// Sets the given `interrupt` as pending
///
/// This is a convenience function around