stm32: add time-driver-any cargo feature that automatically picks one available timer.

This commit is contained in:
Dario Nieuwenhuis
2022-01-24 00:24:23 +01:00
parent 6b0cb0609b
commit 79f60adbfb
16 changed files with 88 additions and 26 deletions

View File

@ -28,9 +28,7 @@ stm32-metapac = { version = "0.1.0", path = "../stm32-metapac", features = ["rt"
vcell = { version = "0.1.3", optional = true }
bxcan = "0.6.2"
nb = "1.0.0"
seq-macro = "0.2.2"
cfg-if = "1.0.0"
[build-dependencies]
@ -46,6 +44,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-any = ["_time-driver"]
time-driver-tim2 = ["_time-driver"]
time-driver-tim3 = ["_time-driver"]