aboutsummaryrefslogtreecommitdiff
path: root/embassy-time/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-time/src/lib.rs')
-rw-r--r--embassy-time/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-time/src/lib.rs b/embassy-time/src/lib.rs
index 82a7ee0df..a59ee68d2 100644
--- a/embassy-time/src/lib.rs
+++ b/embassy-time/src/lib.rs
@@ -6,6 +6,9 @@
6#![allow(clippy::new_without_default)] 6#![allow(clippy::new_without_default)]
7#![warn(missing_docs)] 7#![warn(missing_docs)]
8 8
9//! ## Feature flags
10#![doc = document_features::document_features!(feature_label = r#"<span class="stab portability"><code>{feature}</code></span>"#)]
11
9// This mod MUST go first, so that the others see its macros. 12// This mod MUST go first, so that the others see its macros.
10pub(crate) mod fmt; 13pub(crate) mod fmt;
11 14
@@ -37,10 +40,7 @@ pub use timer::{with_timeout, Ticker, TimeoutError, Timer};
37 40
38/// Ticks per second of the global timebase. 41/// Ticks per second of the global timebase.
39/// 42///
40/// This value is specified by the `tick-*` Cargo features, which 43/// This value is specified by the [`tick-*` Cargo features](crate#tick-rate)
41/// should be set by the time driver. Some drivers support a fixed tick rate, others
42/// allow you to choose a tick rate with Cargo features of their own. You should not
43/// set the `tick-*` features for embassy yourself as an end user.
44pub const TICK_HZ: u64 = tick::TICK_HZ; 44pub const TICK_HZ: u64 = tick::TICK_HZ;
45 45
46const fn gcd(a: u64, b: u64) -> u64 { 46const fn gcd(a: u64, b: u64) -> u64 {