aboutsummaryrefslogtreecommitdiff
path: root/embassy-time
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-time')
-rw-r--r--embassy-time/CHANGELOG.md1
-rw-r--r--embassy-time/Cargo.toml25
2 files changed, 25 insertions, 1 deletions
diff --git a/embassy-time/CHANGELOG.md b/embassy-time/CHANGELOG.md
index a6acb1ad6..0026fbd08 100644
--- a/embassy-time/CHANGELOG.md
+++ b/embassy-time/CHANGELOG.md
@@ -7,7 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7 7
8## Unreleased 8## Unreleased
9 9
10- The `generic-queue` and related features have been removed (moved to embassy-time-queue-driver)
11- embassy-time no longer provides an `embassy-time-queue-driver` implementation 10- embassy-time no longer provides an `embassy-time-queue-driver` implementation
12 11
13## 0.3.2 - 2024-08-05 12## 0.3.2 - 2024-08-05
diff --git a/embassy-time/Cargo.toml b/embassy-time/Cargo.toml
index 4f4ea0b14..eeac7dc29 100644
--- a/embassy-time/Cargo.toml
+++ b/embassy-time/Cargo.toml
@@ -42,6 +42,31 @@ defmt-timestamp-uptime-tus = ["defmt"]
42## Create a `MockDriver` that can be manually advanced for testing purposes. 42## Create a `MockDriver` that can be manually advanced for testing purposes.
43mock-driver = ["tick-hz-1_000_000", "dep:embassy-time-queue-driver"] 43mock-driver = ["tick-hz-1_000_000", "dep:embassy-time-queue-driver"]
44 44
45#! ### Generic Queue
46
47#! By default embassy-time uses a timer queue implementation that is faster but depends on `embassy-executor`.
48#! It will panic if you try to await any timer when using another executor.
49#!
50#! Alternatively, you can choose to use a "generic" timer queue implementation that works on any executor.
51#! To enable it, enable any of the features below.
52#!
53#! The features also set how many timers are used for the generic queue. At most one
54#! `generic-queue-*` feature can be enabled. If none is enabled, a default of 64 timers is used.
55#!
56#! When using embassy-time from libraries, you should *not* enable any `generic-queue-*` feature, to allow the
57#! end user to pick.
58
59## Generic Queue with 8 timers
60generic-queue-8 = ["embassy-time-queue-driver/generic-queue-8"]
61## Generic Queue with 16 timers
62generic-queue-16 = ["embassy-time-queue-driver/generic-queue-16"]
63## Generic Queue with 32 timers
64generic-queue-32 = ["embassy-time-queue-driver/generic-queue-32"]
65## Generic Queue with 64 timers
66generic-queue-64 = ["embassy-time-queue-driver/generic-queue-64"]
67## Generic Queue with 128 timers
68generic-queue-128 = ["embassy-time-queue-driver/generic-queue-128"]
69
45#! ### Tick Rate 70#! ### Tick Rate
46#! 71#!
47#! At most 1 `tick-*` feature can be enabled. If none is enabled, a default of 1MHz is used. 72#! At most 1 `tick-*` feature can be enabled. If none is enabled, a default of 1MHz is used.