diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-05-31 21:55:40 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-31 21:55:40 +0000 |
| commit | 0adb4c926b15f9773fb83497a7bf1eb3789286da (patch) | |
| tree | e94f12eea8a64a3dd22eaef7400f02714ea2fb59 /examples/stm32f3 | |
| parent | a0d43c863dd9859e94e5d202d5b5bb6b107f152c (diff) | |
| parent | 108967417562cf398ba264295014d9e18f2c0707 (diff) | |
Merge #784
784: stm32: make tick rate configurable r=Dirbaio a=willglynn
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`.
Additionally, `embassy/time` now functions in the absence of any `embassy/time-tick-*` feature, defaulting to 32768 Hz if left unspecified.
Co-authored-by: Will Glynn <[email protected]>
Co-authored-by: Dario Nieuwenhuis <[email protected]>
Diffstat (limited to 'examples/stm32f3')
| -rw-r--r-- | examples/stm32f3/Cargo.toml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f3/Cargo.toml b/examples/stm32f3/Cargo.toml index e7a44c11e..de81f1002 100644 --- a/examples/stm32f3/Cargo.toml +++ b/examples/stm32f3/Cargo.toml | |||
| @@ -6,7 +6,7 @@ version = "0.1.0" | |||
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [dependencies] | 8 | [dependencies] |
| 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime"] } | 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] } |
| 10 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "stm32f303vc", "unstable-pac", "memory-x", "time-driver-any", "exti"] } | 10 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "stm32f303vc", "unstable-pac", "memory-x", "time-driver-any", "exti"] } |
| 11 | 11 | ||
| 12 | defmt = "0.3" | 12 | defmt = "0.3" |
