2020-09-22 18:03:43 +02:00
|
|
|
[package]
|
|
|
|
name = "embassy-nrf"
|
|
|
|
version = "0.1.0"
|
2022-06-18 02:15:48 +02:00
|
|
|
edition = "2021"
|
2022-10-07 12:41:56 +02:00
|
|
|
license = "MIT OR Apache-2.0"
|
2020-09-22 18:03:43 +02:00
|
|
|
|
2022-03-04 17:45:01 +01:00
|
|
|
[package.metadata.embassy_docs]
|
2022-04-05 21:05:09 +02:00
|
|
|
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-nrf-v$VERSION/embassy-nrf/src/"
|
2022-06-26 23:55:38 +02:00
|
|
|
src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-nrf/src/"
|
2022-04-05 21:05:09 +02:00
|
|
|
|
2022-03-04 17:45:01 +01:00
|
|
|
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 18:03:43 +02:00
|
|
|
[features]
|
2021-07-14 22:19:04 +02:00
|
|
|
|
2022-08-17 23:40:16 +02:00
|
|
|
time = ["dep:embassy-time"]
|
2022-05-03 00:43:59 +02:00
|
|
|
|
2022-09-27 13:09:56 +02:00
|
|
|
defmt = ["dep:defmt", "embassy-executor/defmt", "embassy-sync/defmt", "embassy-usb-driver?/defmt", "embedded-io?/defmt", "embassy-embedded-hal/defmt"]
|
2022-04-23 05:52:42 +02:00
|
|
|
|
2022-02-12 00:24:04 +01:00
|
|
|
# Enable nightly-only features
|
2022-09-27 13:09:56 +02:00
|
|
|
nightly = ["embedded-hal-1", "embedded-hal-async", "dep:embassy-usb-driver", "embedded-storage-async", "dep:embedded-io", "embassy-embedded-hal/nightly"]
|
2022-02-12 00:24:04 +01:00
|
|
|
|
2021-07-14 22:19:04 +02: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-12 00:24:04 +01: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 23:56:25 +01:00
|
|
|
|
2021-10-13 16:35:05 +02:00
|
|
|
nrf52805 = ["nrf52805-pac", "_ppi"]
|
|
|
|
nrf52810 = ["nrf52810-pac", "_ppi"]
|
|
|
|
nrf52811 = ["nrf52811-pac", "_ppi"]
|
|
|
|
nrf52820 = ["nrf52820-pac", "_ppi"]
|
|
|
|
nrf52832 = ["nrf52832-pac", "_ppi"]
|
2021-10-28 03:07:06 +02: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 17:11:51 +02:00
|
|
|
nrf9160-s = ["_nrf9160"]
|
|
|
|
nrf9160-ns = ["_nrf9160"]
|
2020-09-22 18:03:43 +02:00
|
|
|
|
2021-10-28 03:07:06 +02:00
|
|
|
gpiote = []
|
2022-11-09 19:14:43 +01:00
|
|
|
i2s = []
|
2021-10-28 03:07:06 +02:00
|
|
|
time-driver-rtc1 = ["_time-driver"]
|
|
|
|
|
2021-08-20 15:42:42 +02: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 17:11:51 +02:00
|
|
|
|
2021-10-28 03:07:06 +02:00
|
|
|
_nrf5340-app = ["_nrf5340", "nrf5340-app-pac"]
|
|
|
|
_nrf5340-net = ["_nrf5340", "nrf5340-net-pac"]
|
|
|
|
_nrf5340 = ["_gpio-p1", "_dppi"]
|
2021-10-26 17:11:51 +02:00
|
|
|
_nrf9160 = ["nrf9160-pac", "_dppi"]
|
2021-10-28 03:07:06 +02:00
|
|
|
|
2022-09-02 00:58:31 +02:00
|
|
|
_time-driver = ["dep:embassy-time", "embassy-time?/tick-hz-32_768"]
|
2021-10-28 03:07:06 +02:00
|
|
|
|
2021-10-13 16:35:05 +02:00
|
|
|
_ppi = []
|
|
|
|
_dppi = []
|
2021-10-28 03:07:06 +02:00
|
|
|
_gpio-p1 = []
|
2020-09-22 18:03:43 +02:00
|
|
|
|
|
|
|
[dependencies]
|
2022-07-29 21:58:35 +02:00
|
|
|
embassy-executor = { version = "0.1.0", path = "../embassy-executor", optional = true }
|
2022-08-17 23:40:16 +02:00
|
|
|
embassy-time = { version = "0.1.0", path = "../embassy-time", optional = true }
|
2022-08-22 21:46:09 +02:00
|
|
|
embassy-sync = { version = "0.1.0", path = "../embassy-sync" }
|
2022-06-11 05:08:57 +02:00
|
|
|
embassy-cortex-m = { version = "0.1.0", path = "../embassy-cortex-m", features = ["prio-bits-3"]}
|
2021-07-29 13:44:51 +02:00
|
|
|
embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" }
|
2022-07-08 15:47:47 +02:00
|
|
|
embassy-embedded-hal = {version = "0.1.0", path = "../embassy-embedded-hal" }
|
2022-09-27 13:09:56 +02:00
|
|
|
embassy-usb-driver = {version = "0.1.0", path = "../embassy-usb-driver", optional=true }
|
2020-11-01 17:17:24 +01:00
|
|
|
|
2022-01-27 00:08:02 +01:00
|
|
|
embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] }
|
2022-09-29 11:02:43 +02:00
|
|
|
embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9", optional = true}
|
2022-10-26 16:47:29 +02:00
|
|
|
embedded-hal-async = { version = "=0.1.0-alpha.3", optional = true}
|
|
|
|
embedded-io = { version = "0.3.1", features = ["async"], optional = true }
|
2022-01-13 23:56:25 +01:00
|
|
|
|
2021-11-15 17:08:51 +01:00
|
|
|
defmt = { version = "0.3", optional = true }
|
2021-09-11 00:10:46 +02:00
|
|
|
log = { version = "0.4.14", optional = true }
|
2021-08-19 00:56:11 +02:00
|
|
|
cortex-m-rt = ">=0.6.15,<0.8"
|
2022-08-14 23:16:06 +02:00
|
|
|
cortex-m = "0.7.6"
|
2021-09-11 00:10:46 +02:00
|
|
|
futures = { version = "0.3.17", default-features = false }
|
2022-08-14 23:16:06 +02:00
|
|
|
critical-section = "1.1"
|
2021-06-29 09:26:16 +02:00
|
|
|
rand_core = "0.6.3"
|
2021-10-18 15:24:31 +02:00
|
|
|
fixed = "1.10.0"
|
2022-02-07 12:35:58 +01:00
|
|
|
embedded-storage = "0.3.0"
|
2022-04-19 14:39:59 +02:00
|
|
|
embedded-storage-async = { version = "0.3.0", optional = true }
|
2021-10-28 03:07:06 +02:00
|
|
|
cfg-if = "1.0.0"
|
2020-09-22 18:03:43 +02:00
|
|
|
|
2022-10-26 09:13:26 +02:00
|
|
|
nrf52805-pac = { version = "0.12.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52810-pac = { version = "0.12.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52811-pac = { version = "0.12.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52820-pac = { version = "0.12.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52832-pac = { version = "0.12.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52833-pac = { version = "0.12.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf52840-pac = { version = "0.12.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf5340-app-pac = { version = "0.12.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf5340-net-pac = { version = "0.12.0", optional = true, features = [ "rt" ] }
|
|
|
|
nrf9160-pac = { version = "0.12.0", optional = true, features = [ "rt" ] }
|