From 34a8a64bf54fb500d34a180062f46c0d692d806b Mon Sep 17 00:00:00 2001 From: Will Glynn Date: Fri, 27 May 2022 13:51:24 -0500 Subject: [PATCH] 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. --- embassy-stm32/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml index b682587f..32311cc7 100644 --- a/embassy-stm32/Cargo.toml +++ b/embassy-stm32/Cargo.toml @@ -80,7 +80,7 @@ exti = [] # Features starting with `_` are for internal use only. They're not intended # to be enabled by other crates, and are not covered by semver guarantees. -_time-driver = ["embassy/time-tick-32768hz"] +_time-driver = ["embassy/time"] time-driver-any = ["_time-driver"] time-driver-tim2 = ["_time-driver"] time-driver-tim3 = ["_time-driver"]