aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Glynn <[email protected]>2022-05-27 13:51:24 -0500
committerWill Glynn <[email protected]>2022-05-30 20:13:25 -0500
commit34a8a64bf54fb500d34a180062f46c0d692d806b (patch)
tree23db7aa2199e17c765b029b7731f0bdbf58f9fdf
parenta0d43c863dd9859e94e5d202d5b5bb6b107f152c (diff)
stm32: make tick rate configurable
The stm32 time drivers support arbitrary tick rates but the associated Cargo features do not. Enabling any time driver presently enables `embassy/time-tick-32768hz`; instead, enable only `embassy/time`. This is a breaking change: users must now choose a tick rate. The previous behavior is available by enabling the `embassy/time-tick-32768hz` feature, but now users may also choose `embassy/time-tick-1000hz` or `embassy/time-tick-1mhz` instead.
-rw-r--r--embassy-stm32/Cargo.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml
index b682587f6..32311cc75 100644
--- a/embassy-stm32/Cargo.toml
+++ b/embassy-stm32/Cargo.toml
@@ -80,7 +80,7 @@ exti = []
80 80
81# Features starting with `_` are for internal use only. They're not intended 81# Features starting with `_` are for internal use only. They're not intended
82# to be enabled by other crates, and are not covered by semver guarantees. 82# to be enabled by other crates, and are not covered by semver guarantees.
83_time-driver = ["embassy/time-tick-32768hz"] 83_time-driver = ["embassy/time"]
84time-driver-any = ["_time-driver"] 84time-driver-any = ["_time-driver"]
85time-driver-tim2 = ["_time-driver"] 85time-driver-tim2 = ["_time-driver"]
86time-driver-tim3 = ["_time-driver"] 86time-driver-tim3 = ["_time-driver"]