diff options
| author | Will Glynn <[email protected]> | 2022-05-27 13:51:24 -0500 |
|---|---|---|
| committer | Will Glynn <[email protected]> | 2022-05-30 20:13:25 -0500 |
| commit | 34a8a64bf54fb500d34a180062f46c0d692d806b (patch) | |
| tree | 23db7aa2199e17c765b029b7731f0bdbf58f9fdf | |
| parent | a0d43c863dd9859e94e5d202d5b5bb6b107f152c (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.toml | 2 |
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"] |
| 84 | time-driver-any = ["_time-driver"] | 84 | time-driver-any = ["_time-driver"] |
| 85 | time-driver-tim2 = ["_time-driver"] | 85 | time-driver-tim2 = ["_time-driver"] |
| 86 | time-driver-tim3 = ["_time-driver"] | 86 | time-driver-tim3 = ["_time-driver"] |
