From 6a45bdefba2f8417410715c593f72a5fe95cfe2b Mon Sep 17 00:00:00 2001 From: Jonathan 'theJPster' Pallant Date: Sun, 15 Jun 2025 13:24:18 +0100 Subject: Add details for all the other monotonic implementations. --- rtic-monotonics/src/imxrt.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rtic-monotonics/src/imxrt.rs') diff --git a/rtic-monotonics/src/imxrt.rs b/rtic-monotonics/src/imxrt.rs index d59e91e..04556f6 100644 --- a/rtic-monotonics/src/imxrt.rs +++ b/rtic-monotonics/src/imxrt.rs @@ -4,6 +4,9 @@ //! //! ``` //! use rtic_monotonics::imxrt::prelude::*; +//! +//! // Create the type `Mono`. It will manage the GPT1 timer, and +//! // run with a resolution of 1 µs (1,000,000 ticks per second). //! imxrt_gpt1_monotonic!(Mono, 1_000_000); //! //! fn init() { @@ -19,8 +22,9 @@ //! //! async fn usage() { //! loop { -//! // Use the monotonic +//! // You can use the monotonic to get the time... //! let timestamp = Mono::now(); +//! // ...and you can use it to add a delay to this async function //! Mono::delay(100.millis()).await; //! } //! } -- cgit v1.2.3