diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-11-29 16:37:07 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-11-29 17:01:36 +0100 |
| commit | 4634316749c41dd5d8cc2f316033c9098369ed2f (patch) | |
| tree | 1992bf003d6afcdeae926db2308f369bccfc42ea /embassy-time/src/lib.rs | |
| parent | 1b9925e3da0ec42b770f736cd22325203c97cb47 (diff) | |
Update embedded-(hal,io,nal).
Diffstat (limited to 'embassy-time/src/lib.rs')
| -rw-r--r-- | embassy-time/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-time/src/lib.rs b/embassy-time/src/lib.rs index a90368d59..a0f6e3824 100644 --- a/embassy-time/src/lib.rs +++ b/embassy-time/src/lib.rs | |||
| @@ -52,6 +52,7 @@ const fn gcd(a: u64, b: u64) -> u64 { | |||
| 52 | 52 | ||
| 53 | pub(crate) const GCD_1K: u64 = gcd(TICK_HZ, 1_000); | 53 | pub(crate) const GCD_1K: u64 = gcd(TICK_HZ, 1_000); |
| 54 | pub(crate) const GCD_1M: u64 = gcd(TICK_HZ, 1_000_000); | 54 | pub(crate) const GCD_1M: u64 = gcd(TICK_HZ, 1_000_000); |
| 55 | pub(crate) const GCD_1G: u64 = gcd(TICK_HZ, 1_000_000_000); | ||
| 55 | 56 | ||
| 56 | #[cfg(feature = "defmt-timestamp-uptime")] | 57 | #[cfg(feature = "defmt-timestamp-uptime")] |
| 57 | defmt::timestamp! {"{=u64:us}", Instant::now().as_micros() } | 58 | defmt::timestamp! {"{=u64:us}", Instant::now().as_micros() } |
