Restrict to pacs supporting i2s
This commit is contained in:
@ -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
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user