diff options
| -rw-r--r-- | embassy-time/CHANGELOG.md | 4 | ||||
| -rw-r--r-- | embassy-time/Cargo.toml | 3 | ||||
| -rw-r--r-- | embassy-time/gen_tick.py | 1 | ||||
| -rw-r--r-- | embassy-time/src/tick.rs | 3 |
4 files changed, 10 insertions, 1 deletions
diff --git a/embassy-time/CHANGELOG.md b/embassy-time/CHANGELOG.md index 8bf02dbc1..4389e6ce5 100644 --- a/embassy-time/CHANGELOG.md +++ b/embassy-time/CHANGELOG.md | |||
| @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. | |||
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | 7 | ||
| 8 | ## 0.1.4 - ??? | ||
| 9 | |||
| 10 | - Added `tick-hz-80_000_000` | ||
| 11 | |||
| 8 | ## 0.1.3 - 2023-08-28 | 12 | ## 0.1.3 - 2023-08-28 |
| 9 | 13 | ||
| 10 | - Update `embedded-hal-async` to `1.0.0-rc.1` | 14 | - Update `embedded-hal-async` to `1.0.0-rc.1` |
diff --git a/embassy-time/Cargo.toml b/embassy-time/Cargo.toml index 03aa6ca2b..a290509d3 100644 --- a/embassy-time/Cargo.toml +++ b/embassy-time/Cargo.toml | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "embassy-time" | 2 | name = "embassy-time" |
| 3 | version = "0.1.3" | 3 | version = "0.1.4" |
| 4 | edition = "2021" | 4 | edition = "2021" |
| 5 | description = "Instant and Duration for embedded no-std systems, with async timer support" | 5 | description = "Instant and Duration for embedded no-std systems, with async timer support" |
| 6 | repository = "https://github.com/embassy-rs/embassy" | 6 | repository = "https://github.com/embassy-rs/embassy" |
| @@ -145,6 +145,7 @@ tick-hz-384_000_000 = [] | |||
| 145 | tick-hz-512_000_000 = [] | 145 | tick-hz-512_000_000 = [] |
| 146 | tick-hz-576_000_000 = [] | 146 | tick-hz-576_000_000 = [] |
| 147 | tick-hz-768_000_000 = [] | 147 | tick-hz-768_000_000 = [] |
| 148 | tick-hz-80_000_000 = [] | ||
| 148 | # END TICKS | 149 | # END TICKS |
| 149 | 150 | ||
| 150 | [dependencies] | 151 | [dependencies] |
diff --git a/embassy-time/gen_tick.py b/embassy-time/gen_tick.py index 15e65187b..804b6bb43 100644 --- a/embassy-time/gen_tick.py +++ b/embassy-time/gen_tick.py | |||
| @@ -17,6 +17,7 @@ for i in range(1, 10): | |||
| 17 | ticks.append(2**i * 1000000) | 17 | ticks.append(2**i * 1000000) |
| 18 | ticks.append(2**i * 9 // 8 * 1000000) | 18 | ticks.append(2**i * 9 // 8 * 1000000) |
| 19 | ticks.append(2**i * 3 // 2 * 1000000) | 19 | ticks.append(2**i * 3 // 2 * 1000000) |
| 20 | ticks.append(80_000_000) | ||
| 20 | 21 | ||
| 21 | seen = set() | 22 | seen = set() |
| 22 | ticks = [x for x in ticks if not (x in seen or seen.add(x))] | 23 | ticks = [x for x in ticks if not (x in seen or seen.add(x))] |
diff --git a/embassy-time/src/tick.rs b/embassy-time/src/tick.rs index 608bc44f1..0a4a02761 100644 --- a/embassy-time/src/tick.rs +++ b/embassy-time/src/tick.rs | |||
| @@ -156,6 +156,8 @@ pub const TICK_HZ: u64 = 512_000_000; | |||
| 156 | pub const TICK_HZ: u64 = 576_000_000; | 156 | pub const TICK_HZ: u64 = 576_000_000; |
| 157 | #[cfg(feature = "tick-hz-768_000_000")] | 157 | #[cfg(feature = "tick-hz-768_000_000")] |
| 158 | pub const TICK_HZ: u64 = 768_000_000; | 158 | pub const TICK_HZ: u64 = 768_000_000; |
| 159 | #[cfg(feature = "tick-hz-80_000_000")] | ||
| 160 | pub const TICK_HZ: u64 = 80_000_000; | ||
| 159 | #[cfg(not(any( | 161 | #[cfg(not(any( |
| 160 | feature = "tick-hz-1", | 162 | feature = "tick-hz-1", |
| 161 | feature = "tick-hz-10", | 163 | feature = "tick-hz-10", |
| @@ -235,5 +237,6 @@ pub const TICK_HZ: u64 = 768_000_000; | |||
| 235 | feature = "tick-hz-512_000_000", | 237 | feature = "tick-hz-512_000_000", |
| 236 | feature = "tick-hz-576_000_000", | 238 | feature = "tick-hz-576_000_000", |
| 237 | feature = "tick-hz-768_000_000", | 239 | feature = "tick-hz-768_000_000", |
| 240 | feature = "tick-hz-80_000_000", | ||
| 238 | )))] | 241 | )))] |
| 239 | pub const TICK_HZ: u64 = 1_000_000; | 242 | pub const TICK_HZ: u64 = 1_000_000; |
