nrf: make gpiote and time-driver optional via cargo features.

This commit is contained in:
Dario Nieuwenhuis
2021-08-20 15:42:42 +02:00
parent de2039fd1d
commit 3457bb9f05
3 changed files with 16 additions and 2 deletions

View File

@ -26,9 +26,15 @@ nrf52832 = ["nrf52832-pac"]
nrf52833 = ["nrf52833-pac"]
nrf52840 = ["nrf52840-pac"]
# 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"]
gpiote = []
time-driver-rtc1 = ["_time-driver"]
[dependencies]
embassy = { version = "0.1.0", path = "../embassy", features = ["time-tick-32768hz"] }
embassy = { version = "0.1.0", path = "../embassy" }
embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["nrf"]}
embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" }