aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-time/CHANGELOG.md4
-rw-r--r--embassy-time/Cargo.toml3
-rw-r--r--embassy-time/gen_tick.py1
-rw-r--r--embassy-time/src/tick.rs3
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.
5The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 5The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 6and 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]
2name = "embassy-time" 2name = "embassy-time"
3version = "0.1.3" 3version = "0.1.4"
4edition = "2021" 4edition = "2021"
5description = "Instant and Duration for embedded no-std systems, with async timer support" 5description = "Instant and Duration for embedded no-std systems, with async timer support"
6repository = "https://github.com/embassy-rs/embassy" 6repository = "https://github.com/embassy-rs/embassy"
@@ -145,6 +145,7 @@ tick-hz-384_000_000 = []
145tick-hz-512_000_000 = [] 145tick-hz-512_000_000 = []
146tick-hz-576_000_000 = [] 146tick-hz-576_000_000 = []
147tick-hz-768_000_000 = [] 147tick-hz-768_000_000 = []
148tick-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)
20ticks.append(80_000_000)
20 21
21seen = set() 22seen = set()
22ticks = [x for x in ticks if not (x in seen or seen.add(x))] 23ticks = [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;
156pub const TICK_HZ: u64 = 576_000_000; 156pub const TICK_HZ: u64 = 576_000_000;
157#[cfg(feature = "tick-hz-768_000_000")] 157#[cfg(feature = "tick-hz-768_000_000")]
158pub const TICK_HZ: u64 = 768_000_000; 158pub const TICK_HZ: u64 = 768_000_000;
159#[cfg(feature = "tick-hz-80_000_000")]
160pub 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)))]
239pub const TICK_HZ: u64 = 1_000_000; 242pub const TICK_HZ: u64 = 1_000_000;