diff options
| author | Gram <mail@orsinium.dev> | 2024-03-24 18:15:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-24 17:15:57 +0000 |
| commit | fa2a5b449f1746b4b3bb3da08dab532ee24ba286 (patch) | |
| tree | 57b1d1cc63c4cab90e25e572b466c1fe90c980f2 /rtic-time/src/monotonic.rs | |
| parent | 4060c3def88f82d4e4f48de7137ce365167ef265 (diff) | |
Docs: Rename `DelayUs` to `DelayNs` in docs for macros. (#908)
Diffstat (limited to 'rtic-time/src/monotonic.rs')
| -rw-r--r-- | rtic-time/src/monotonic.rs | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/rtic-time/src/monotonic.rs b/rtic-time/src/monotonic.rs index 0e8d2b8..e6a160d 100644 --- a/rtic-time/src/monotonic.rs +++ b/rtic-time/src/monotonic.rs @@ -73,8 +73,11 @@ pub trait Monotonic { fn disable_timer() {} } -/// Creates impl blocks for `embedded_hal::delay::DelayUs`, -/// based on `fugit::ExtU64Ceil`. +/// Creates impl blocks for [`embedded_hal::delay::DelayNs`][DelayNs], +/// based on [`fugit::ExtU64Ceil`][ExtU64Ceil]. +/// +/// [DelayNs]: https://docs.rs/embedded-hal/latest/embedded_hal/delay/trait.DelayNs.html +/// [ExtU64Ceil]: https://docs.rs/fugit/latest/fugit/trait.ExtU64Ceil.html #[macro_export] macro_rules! embedded_hal_delay_impl_fugit64 { ($t:ty) => { @@ -121,8 +124,11 @@ macro_rules! embedded_hal_delay_impl_fugit64 { }; } -/// Creates impl blocks for `embedded_hal_async::delay::DelayUs`, -/// based on `fugit::ExtU64Ceil`. +/// Creates impl blocks for [`embedded_hal_async::delay::DelayNs`][DelayNs], +/// based on [`fugit::ExtU64Ceil`][ExtU64Ceil]. +/// +/// [DelayNs]: https://docs.rs/embedded-hal-async/latest/embedded_hal_async/delay/trait.DelayNs.html +/// [ExtU64Ceil]: https://docs.rs/fugit/latest/fugit/trait.ExtU64Ceil.html #[macro_export] macro_rules! embedded_hal_async_delay_impl_fugit64 { ($t:ty) => { @@ -148,8 +154,11 @@ macro_rules! embedded_hal_async_delay_impl_fugit64 { }; } -/// Creates impl blocks for `embedded_hal::delay::DelayUs`, -/// based on `fugit::ExtU32Ceil`. +/// Creates impl blocks for [`embedded_hal::delay::DelayNs`][DelayNs], +/// based on [`fugit::ExtU32Ceil`][ExtU32Ceil]. +/// +/// [DelayNs]: https://docs.rs/embedded-hal/latest/embedded_hal/delay/trait.DelayNs.html +/// [ExtU32Ceil]: https://docs.rs/fugit/latest/fugit/trait.ExtU32Ceil.html #[macro_export] macro_rules! embedded_hal_delay_impl_fugit32 { ($t:ty) => { @@ -196,8 +205,11 @@ macro_rules! embedded_hal_delay_impl_fugit32 { }; } -/// Creates impl blocks for `embedded_hal_async::delay::DelayUs`, -/// based on `fugit::ExtU32Ceil`. +/// Creates impl blocks for [`embedded_hal_async::delay::DelayNs`][DelayNs], +/// based on [`fugit::ExtU32Ceil`][ExtU32Ceil]. +/// +/// [DelayNs]: https://docs.rs/embedded-hal-async/latest/embedded_hal_async/delay/trait.DelayNs.html +/// [ExtU32Ceil]: https://docs.rs/fugit/latest/fugit/trait.ExtU32Ceil.html #[macro_export] macro_rules! embedded_hal_async_delay_impl_fugit32 { ($t:ty) => { |
