aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Perez Llamas <[email protected]>2022-11-10 23:13:01 +0100
committerChristian Perez Llamas <[email protected]>2022-11-10 23:13:01 +0100
commit4a2e810485a996014999ad630a604c3fe4fc81a4 (patch)
tree1e7a894d50d63f4e66cd603e41bddce26aabe9ca
parentf22f36f51ba4466dd15df78df0ad86ac96f9051c (diff)
Restrict to pacs supporting i2s
-rw-r--r--embassy-nrf/Cargo.toml1
-rw-r--r--embassy-nrf/src/lib.rs6
-rw-r--r--examples/nrf/Cargo.toml2
3 files changed, 6 insertions, 3 deletions
diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml
index aa1576fd4..67b6bec40 100644
--- a/embassy-nrf/Cargo.toml
+++ b/embassy-nrf/Cargo.toml
@@ -48,7 +48,6 @@ nrf9160-s = ["_nrf9160"]
48nrf9160-ns = ["_nrf9160"] 48nrf9160-ns = ["_nrf9160"]
49 49
50gpiote = [] 50gpiote = []
51i2s = []
52time-driver-rtc1 = ["_time-driver"] 51time-driver-rtc1 = ["_time-driver"]
53 52
54# Features starting with `_` are for internal use only. They're not intended 53# Features starting with `_` are for internal use only. They're not intended
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs
index ac797db9b..95bd5831b 100644
--- a/embassy-nrf/src/lib.rs
+++ b/embassy-nrf/src/lib.rs
@@ -74,7 +74,11 @@ pub mod buffered_uarte;
74pub mod gpio; 74pub mod gpio;
75#[cfg(feature = "gpiote")] 75#[cfg(feature = "gpiote")]
76pub mod gpiote; 76pub mod gpiote;
77// #[cfg(all(feature = "i2s", feature = "nrf52840"))] 77#[cfg(any(
78 feature = "nrf52832",
79 feature = "nrf52833",
80 feature = "nrf52840",
81))]
78pub mod i2s; 82pub mod i2s;
79#[cfg(not(any(feature = "_nrf5340", feature = "_nrf9160")))] 83#[cfg(not(any(feature = "_nrf5340", feature = "_nrf9160")))]
80pub mod nvmc; 84pub mod nvmc;
diff --git a/examples/nrf/Cargo.toml b/examples/nrf/Cargo.toml
index a79044e8e..c633f82f5 100644
--- a/examples/nrf/Cargo.toml
+++ b/examples/nrf/Cargo.toml
@@ -14,7 +14,7 @@ embassy-futures = { version = "0.1.0", path = "../../embassy-futures" }
14embassy-sync = { version = "0.1.0", path = "../../embassy-sync", features = ["defmt"] } 14embassy-sync = { version = "0.1.0", path = "../../embassy-sync", features = ["defmt"] }
15embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["defmt", "integrated-timers"] } 15embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["defmt", "integrated-timers"] }
16embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] } 16embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] }
17embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote", "i2s", "unstable-pac"] } 17embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac"] }
18embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "pool-16"], optional = true } 18embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "pool-16"], optional = true }
19embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"], optional = true } 19embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"], optional = true }
20embedded-io = "0.3.1" 20embedded-io = "0.3.1"