2020-09-22 16:03:43 +00:00
|
|
|
[package]
|
|
|
|
name = "embassy-nrf"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
|
|
|
|
edition = "2018"
|
|
|
|
|
2022-03-04 16:45:01 +00:00
|
|
|
[package.metadata.embassy_docs]
|
|
|
|
features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "gpiote", "time-driver-rtc1"]
|
|
|
|
flavors = [
|
|
|
|
{ regex_feature = "nrf52.*", target = "thumbv7em-none-eabihf" },
|
|
|
|
{ regex_feature = "nrf53.*", target = "thumbv8m.main-none-eabihf" },
|
|
|
|
{ regex_feature = "nrf91.*", target = "thumbv8m.main-none-eabihf" },
|
|
|
|
]
|
|
|
|
|
2020-09-22 16:03:43 +00:00
|
|
|
[features]
|
2021-07-14 20:19:04 +00:00
|
|
|
|
2022-02-11 23:24:04 +00:00
|
|
|
# Enable nightly-only features
|
|
|
|
nightly = ["embassy/nightly", "embedded-hal-1", "embedded-hal-async"]
|
|
|
|
|
2021-07-14 20:19:04 +00:00
|
|
|
# Reexport the PAC for the currently enabled chip at `embassy_nrf::pac`.
|
|
|
|
# This is unstable because semver-minor (non-breaking) releases of embassy-nrf may major-bump (breaking) the PAC version.
|
|
|
|
# If this is an issue for you, you're encouraged to directly depend on a fixed version of the PAC.
|
|
|
|
# There are no plans to make this stable.
|
|
|
|
unstable-pac = []
|
|
|
|
|
2022-02-11 23:24:04 +00:00
|
|
|
# Implement embedded-hal 1.0 alpha traits.
|
|
|
|
# Implement embedded-hal-async traits if `nightly` is set as well.
|
|
|
|
unstable-traits = ["embedded-hal-1"]
|
2022-01-13 22:56:25 +00:00
|
|
|
|
2021-10-13 14:35:05 +00:00
|
|
|
nrf52805 = ["nrf52805-pac", "_ppi"]
|
|
|
|
nrf52810 = ["nrf52810-pac", "_ppi"]
|
|
|
|
nrf52811 = ["nrf52811-pac", "_ppi"]
|
|
|
|
nrf52820 = ["nrf52820-pac", "_ppi"]
|
|
|
|
nrf52832 = ["nrf52832-pac", "_ppi"]
|
2021-10-28 01:07:06 +00:00
|
|
|
nrf52833 = ["nrf52833-pac", "_ppi", "_gpio-p1"]
|
|
|
|
nrf52840 = ["nrf52840-pac", "_ppi", "_gpio-p1"]
|
|
|
|
nrf5340-app-s = ["_nrf5340-app"]
|
|
|
|
nrf5340-app-ns = ["_nrf5340-app"]
|
|
|
|
nrf5340-net = ["_nrf5340-net"]
|
2021-10-26 15:11:51 +00:00
|
|
|
nrf9160-s = ["_nrf9160"]
|
|
|
|
nrf9160-ns = ["_nrf9160"]
|
2020-09-22 16:03:43 +00:00
|
|
|
|
2021-10-28 01:07:06 +00:00
|
|
|
gpiote = []
|
|
|
|
time-driver-rtc1 = ["_time-driver"]
|
|
|
|
|
2021-08-20 13:42:42 +00:00
|
|
|
# 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.
|
2021-10-26 15:11:51 +00:00
|
|
|
|
2021-10-28 01:07:06 +00:00
|
|
|
_nrf5340-app = ["_nrf5340", "nrf5340-app-pac"]
|
|
|
|
_nrf5340-net = ["_nrf5340", "nrf5340-net-pac"]
|
|
|
|
_nrf5340 = ["_gpio-p1", "_dppi"]
|
2021-10-26 15:11:51 +00:00
|
|
|
_nrf9160 = ["nrf9160-pac", "_dppi"]
|
2021-10-28 01:07:06 +00:00
|
|
|
|
2021-08-20 13:42:42 +00:00
|
|
|
_time-driver = ["embassy/time-tick-32768hz"]
|
2021-10-28 01:07:06 +00:00
|
|
|
|
2021-10-13 14:35:05 +00:00
|
|
|
_ppi = []
|
|
|
|
_dppi = []
|
2021-10-28 01:07:06 +00:00
|
|
|
_gpio-p1 = []
|
2020-09-22 16:03:43 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2021-08-20 13:42:42 +00:00
|
|
|
embassy = { version = "0.1.0", path = "../embassy" }
|
2021-03-27 22:27:39 +00:00
|
|
|
embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["nrf"]}
|
2021-07-29 11:44:51 +00:00
|
|
|
embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" }
|
2020-11-01 16:17:24 +00:00
|
|
|
|
2022-01-26 23:08:02 +00:00
|
|
|
embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] }
|
2022-01-13 22:56:25 +00:00
|
|
|
embedded-hal-1 = { package = "embedded-hal", version = "1.0.0-alpha.6", git = "https://github.com/embassy-rs/embedded-hal", branch = "embassy", optional = true}
|
|
|
|
embedded-hal-async = { version = "0.0.1", git = "https://github.com/embassy-rs/embedded-hal", branch = "embassy", optional = true}
|
|
|
|
|
2021-11-15 16:08:51 +00:00
|
|
|
defmt = { version = "0.3", optional = true }
|
2021-09-10 22:10:46 +00:00
|
|
|
log = { version = "0.4.14", optional = true }
|
2021-08-18 22:56:11 +00:00
|
|
|
cortex-m-rt = ">=0.6.15,<0.8"
|
2021-09-10 22:10:46 +00:00
|
|
|
cortex-m = "0.7.3"
|
|
|
|
embedded-dma = "0.1.2"
|
|
|
|
futures = { version = "0.3.17", default-features = false }
|
2021-11-02 17:52:03 +00:00
|
|
|
critical-section = "0.2.5"
|
2021-06-29 07:26:16 +00:00
|
|
|
rand_core = "0.6.3"
|
2021-10-18 13:24:31 +00:00
|
|
|
fixed = "1.10.0"
|
2022-02-07 11:35:58 +00:00
|
|
|
embedded-storage = "0.3.0"
|
2021-10-28 01:07:06 +00:00
|
|
|
cfg-if = "1.0.0"
|
2022-01-03 18:52:36 +00:00
|
|
|
nrf-usbd = {version = "0.1.1"}
|
2021-12-13 00:13:37 +00:00
|
|
|
usb-device = "0.2.8"
|
2020-09-22 16:03:43 +00:00
|
|
|
|
2022-02-15 15:35:54 +00:00
|
|
|
nrf52805-pac = { version = "0.11.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52810-pac = { version = "0.11.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52811-pac = { version = "0.11.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52820-pac = { version = "0.11.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52832-pac = { version = "0.11.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52833-pac = { version = "0.11.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52840-pac = { version = "0.11.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf5340-app-pac = { version = "0.11.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf5340-net-pac = { version = "0.11.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf9160-pac = { version = "0.11.0", optional = true, features = [ "rt" ] }
|