Restrict to pacs supporting i2s

This commit is contained in:
Christian Perez Llamas 2022-11-10 23:13:01 +01:00
parent f22f36f51b
commit 4a2e810485
3 changed files with 6 additions and 3 deletions

View File

@ -48,7 +48,6 @@ nrf9160-s = ["_nrf9160"]
nrf9160-ns = ["_nrf9160"]
gpiote = []
i2s = []
time-driver-rtc1 = ["_time-driver"]
# Features starting with `_` are for internal use only. They're not intended

View File

@ -74,7 +74,11 @@ pub mod buffered_uarte;
pub mod gpio;
#[cfg(feature = "gpiote")]
pub mod gpiote;
// #[cfg(all(feature = "i2s", feature = "nrf52840"))]
#[cfg(any(
feature = "nrf52832",
feature = "nrf52833",
feature = "nrf52840",
))]
pub mod i2s;
#[cfg(not(any(feature = "_nrf5340", feature = "_nrf9160")))]
pub mod nvmc;

View File

@ -14,7 +14,7 @@ embassy-futures = { version = "0.1.0", path = "../../embassy-futures" }
embassy-sync = { version = "0.1.0", path = "../../embassy-sync", features = ["defmt"] }
embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["defmt", "integrated-timers"] }
embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] }
embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote", "i2s", "unstable-pac"] }
embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac"] }
embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "pool-16"], optional = true }
embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"], optional = true }
embedded-io = "0.3.1"