diff options
| -rw-r--r-- | embassy-nrf/Cargo.toml | 10 | ||||
| -rw-r--r-- | embassy-nrf/src/lib.rs | 44 | ||||
| -rw-r--r-- | examples/Cargo.toml | 2 |
3 files changed, 28 insertions, 28 deletions
diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml index b367de839..420d8ced8 100644 --- a/embassy-nrf/Cargo.toml +++ b/embassy-nrf/Cargo.toml | |||
| @@ -15,11 +15,11 @@ defmt-info = [] | |||
| 15 | defmt-warn = [] | 15 | defmt-warn = [] |
| 16 | defmt-error = [] | 16 | defmt-error = [] |
| 17 | 17 | ||
| 18 | nrf52810 = ["nrf52810-pac"] | 18 | 52810 = ["nrf52810-pac"] |
| 19 | nrf52811 = ["nrf52811-pac"] | 19 | 52811 = ["nrf52811-pac"] |
| 20 | nrf52832 = ["nrf52832-pac"] | 20 | 52832 = ["nrf52832-pac"] |
| 21 | nrf52833 = ["nrf52833-pac"] | 21 | 52833 = ["nrf52833-pac"] |
| 22 | nrf52840 = ["nrf52840-pac"] | 22 | 52840 = ["nrf52840-pac"] |
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | [dependencies] | 25 | [dependencies] |
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index edc2778b8..4e6da8c38 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs | |||
| @@ -4,37 +4,37 @@ | |||
| 4 | #![feature(type_alias_impl_trait)] | 4 | #![feature(type_alias_impl_trait)] |
| 5 | 5 | ||
| 6 | #[cfg(not(any( | 6 | #[cfg(not(any( |
| 7 | feature = "nrf52810", | 7 | feature = "52810", |
| 8 | feature = "nrf52811", | 8 | feature = "52811", |
| 9 | feature = "nrf52832", | 9 | feature = "52832", |
| 10 | feature = "nrf52833", | 10 | feature = "52833", |
| 11 | feature = "nrf52840", | 11 | feature = "52840", |
| 12 | )))] | 12 | )))] |
| 13 | compile_error!("No chip feature activated. You must activate exactly one of the following features: nrf52810, nrf52811, nrf52832, nrf52833, nrf52840"); | 13 | compile_error!("No chip feature activated. You must activate exactly one of the following features: 52810, 52811, 52832, 52833, 52840"); |
| 14 | 14 | ||
| 15 | #[cfg(any( | 15 | #[cfg(any( |
| 16 | all(feature = "nrf52810", feature = "nrf52811"), | 16 | all(feature = "52810", feature = "52811"), |
| 17 | all(feature = "nrf52810", feature = "nrf52832"), | 17 | all(feature = "52810", feature = "52832"), |
| 18 | all(feature = "nrf52810", feature = "nrf52833"), | 18 | all(feature = "52810", feature = "52833"), |
| 19 | all(feature = "nrf52810", feature = "nrf52840"), | 19 | all(feature = "52810", feature = "52840"), |
| 20 | all(feature = "nrf52811", feature = "nrf52832"), | 20 | all(feature = "52811", feature = "52832"), |
| 21 | all(feature = "nrf52811", feature = "nrf52833"), | 21 | all(feature = "52811", feature = "52833"), |
| 22 | all(feature = "nrf52811", feature = "nrf52840"), | 22 | all(feature = "52811", feature = "52840"), |
| 23 | all(feature = "nrf52832", feature = "nrf52833"), | 23 | all(feature = "52832", feature = "52833"), |
| 24 | all(feature = "nrf52832", feature = "nrf52840"), | 24 | all(feature = "52832", feature = "52840"), |
| 25 | all(feature = "nrf52833", feature = "nrf52840"), | 25 | all(feature = "52833", feature = "52840"), |
| 26 | ))] | 26 | ))] |
| 27 | compile_error!("Multile chip features activated. You must activate exactly one of the following features: nrf52810, nrf52811, nrf52832, nrf52833, nrf52840"); | 27 | compile_error!("Multile chip features activated. You must activate exactly one of the following features: 52810, 52811, 52832, 52833, 52840"); |
| 28 | 28 | ||
| 29 | #[cfg(feature = "nrf52810")] | 29 | #[cfg(feature = "52810")] |
| 30 | pub use nrf52810_pac as pac; | 30 | pub use nrf52810_pac as pac; |
| 31 | #[cfg(feature = "nrf52811")] | 31 | #[cfg(feature = "52811")] |
| 32 | pub use nrf52811_pac as pac; | 32 | pub use nrf52811_pac as pac; |
| 33 | #[cfg(feature = "nrf52832")] | 33 | #[cfg(feature = "52832")] |
| 34 | pub use nrf52832_pac as pac; | 34 | pub use nrf52832_pac as pac; |
| 35 | #[cfg(feature = "nrf52833")] | 35 | #[cfg(feature = "52833")] |
| 36 | pub use nrf52833_pac as pac; | 36 | pub use nrf52833_pac as pac; |
| 37 | #[cfg(feature = "nrf52840")] | 37 | #[cfg(feature = "52840")] |
| 38 | pub use nrf52840_pac as pac; | 38 | pub use nrf52840_pac as pac; |
| 39 | 39 | ||
| 40 | pub mod gpiote; | 40 | pub mod gpiote; |
diff --git a/examples/Cargo.toml b/examples/Cargo.toml index c243691a7..15716a541 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml | |||
| @@ -25,7 +25,7 @@ defmt-rtt = "0.1.0" | |||
| 25 | panic-probe = "0.1.0" | 25 | panic-probe = "0.1.0" |
| 26 | nrf52840-hal = { version = "0.11.0" } | 26 | nrf52840-hal = { version = "0.11.0" } |
| 27 | embassy = { version = "0.1.0", path = "../embassy" } | 27 | embassy = { version = "0.1.0", path = "../embassy" } |
| 28 | embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt-trace", "nrf52840"] } | 28 | embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt-trace", "52840"] } |
| 29 | static-executor = { version = "0.1.0", features=["defmt"]} | 29 | static-executor = { version = "0.1.0", features=["defmt"]} |
| 30 | static-executor-cortex-m = { version = "0.1.0" } | 30 | static-executor-cortex-m = { version = "0.1.0" } |
| 31 | futures = { version = "0.3.5", default-features = false } | 31 | futures = { version = "0.3.5", default-features = false } |
