aboutsummaryrefslogtreecommitdiff
path: root/embassy-time/src/lib.rs
diff options
context:
space:
mode:
authorsodo <[email protected]>2024-01-02 01:37:00 +0900
committersodo <[email protected]>2024-01-02 13:34:22 +0900
commit6ee153a3e2eec284c0d9d87f31801265c0604f74 (patch)
tree8b801cbd15f9ad5052d5942c731e75736dc9d7eb /embassy-time/src/lib.rs
parentb7cd7952c890f585ff876c622482534e5d58d4a4 (diff)
parent0be9b0599aaf2e425d76ec7852ff4b3535defddf (diff)
Merge remote-tracking branch 'origin'
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 {