remove nrf
prefix in features, for consistency with nrf-hal
This commit is contained in:
@ -15,11 +15,11 @@ defmt-info = []
|
||||
defmt-warn = []
|
||||
defmt-error = []
|
||||
|
||||
nrf52810 = ["nrf52810-pac"]
|
||||
nrf52811 = ["nrf52811-pac"]
|
||||
nrf52832 = ["nrf52832-pac"]
|
||||
nrf52833 = ["nrf52833-pac"]
|
||||
nrf52840 = ["nrf52840-pac"]
|
||||
52810 = ["nrf52810-pac"]
|
||||
52811 = ["nrf52811-pac"]
|
||||
52832 = ["nrf52832-pac"]
|
||||
52833 = ["nrf52833-pac"]
|
||||
52840 = ["nrf52840-pac"]
|
||||
|
||||
|
||||
[dependencies]
|
||||
|
@ -4,37 +4,37 @@
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
#[cfg(not(any(
|
||||
feature = "nrf52810",
|
||||
feature = "nrf52811",
|
||||
feature = "nrf52832",
|
||||
feature = "nrf52833",
|
||||
feature = "nrf52840",
|
||||
feature = "52810",
|
||||
feature = "52811",
|
||||
feature = "52832",
|
||||
feature = "52833",
|
||||
feature = "52840",
|
||||
)))]
|
||||
compile_error!("No chip feature activated. You must activate exactly one of the following features: nrf52810, nrf52811, nrf52832, nrf52833, nrf52840");
|
||||
compile_error!("No chip feature activated. You must activate exactly one of the following features: 52810, 52811, 52832, 52833, 52840");
|
||||
|
||||
#[cfg(any(
|
||||
all(feature = "nrf52810", feature = "nrf52811"),
|
||||
all(feature = "nrf52810", feature = "nrf52832"),
|
||||
all(feature = "nrf52810", feature = "nrf52833"),
|
||||
all(feature = "nrf52810", feature = "nrf52840"),
|
||||
all(feature = "nrf52811", feature = "nrf52832"),
|
||||
all(feature = "nrf52811", feature = "nrf52833"),
|
||||
all(feature = "nrf52811", feature = "nrf52840"),
|
||||
all(feature = "nrf52832", feature = "nrf52833"),
|
||||
all(feature = "nrf52832", feature = "nrf52840"),
|
||||
all(feature = "nrf52833", feature = "nrf52840"),
|
||||
all(feature = "52810", feature = "52811"),
|
||||
all(feature = "52810", feature = "52832"),
|
||||
all(feature = "52810", feature = "52833"),
|
||||
all(feature = "52810", feature = "52840"),
|
||||
all(feature = "52811", feature = "52832"),
|
||||
all(feature = "52811", feature = "52833"),
|
||||
all(feature = "52811", feature = "52840"),
|
||||
all(feature = "52832", feature = "52833"),
|
||||
all(feature = "52832", feature = "52840"),
|
||||
all(feature = "52833", feature = "52840"),
|
||||
))]
|
||||
compile_error!("Multile chip features activated. You must activate exactly one of the following features: nrf52810, nrf52811, nrf52832, nrf52833, nrf52840");
|
||||
compile_error!("Multile chip features activated. You must activate exactly one of the following features: 52810, 52811, 52832, 52833, 52840");
|
||||
|
||||
#[cfg(feature = "nrf52810")]
|
||||
#[cfg(feature = "52810")]
|
||||
pub use nrf52810_pac as pac;
|
||||
#[cfg(feature = "nrf52811")]
|
||||
#[cfg(feature = "52811")]
|
||||
pub use nrf52811_pac as pac;
|
||||
#[cfg(feature = "nrf52832")]
|
||||
#[cfg(feature = "52832")]
|
||||
pub use nrf52832_pac as pac;
|
||||
#[cfg(feature = "nrf52833")]
|
||||
#[cfg(feature = "52833")]
|
||||
pub use nrf52833_pac as pac;
|
||||
#[cfg(feature = "nrf52840")]
|
||||
#[cfg(feature = "52840")]
|
||||
pub use nrf52840_pac as pac;
|
||||
|
||||
pub mod gpiote;
|
||||
|
Reference in New Issue
Block a user