diff options
Diffstat (limited to 'embassy-time/Cargo.toml')
| -rw-r--r-- | embassy-time/Cargo.toml | 25 |
1 files changed, 25 insertions, 0 deletions
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. |
| 43 | mock-driver = ["tick-hz-1_000_000", "dep:embassy-time-queue-driver"] | 43 | mock-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 | ||
| 60 | generic-queue-8 = ["embassy-time-queue-driver/generic-queue-8"] | ||
| 61 | ## Generic Queue with 16 timers | ||
| 62 | generic-queue-16 = ["embassy-time-queue-driver/generic-queue-16"] | ||
| 63 | ## Generic Queue with 32 timers | ||
| 64 | generic-queue-32 = ["embassy-time-queue-driver/generic-queue-32"] | ||
| 65 | ## Generic Queue with 64 timers | ||
| 66 | generic-queue-64 = ["embassy-time-queue-driver/generic-queue-64"] | ||
| 67 | ## Generic Queue with 128 timers | ||
| 68 | generic-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. |
