aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-nrf/Cargo.toml10
-rw-r--r--embassy-nrf/src/lib.rs44
-rw-r--r--examples/Cargo.toml2
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 = []
15defmt-warn = [] 15defmt-warn = []
16defmt-error = [] 16defmt-error = []
17 17
18nrf52810 = ["nrf52810-pac"] 1852810 = ["nrf52810-pac"]
19nrf52811 = ["nrf52811-pac"] 1952811 = ["nrf52811-pac"]
20nrf52832 = ["nrf52832-pac"] 2052832 = ["nrf52832-pac"]
21nrf52833 = ["nrf52833-pac"] 2152833 = ["nrf52833-pac"]
22nrf52840 = ["nrf52840-pac"] 2252840 = ["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)))]
13compile_error!("No chip feature activated. You must activate exactly one of the following features: nrf52810, nrf52811, nrf52832, nrf52833, nrf52840"); 13compile_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))]
27compile_error!("Multile chip features activated. You must activate exactly one of the following features: nrf52810, nrf52811, nrf52832, nrf52833, nrf52840"); 27compile_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")]
30pub use nrf52810_pac as pac; 30pub use nrf52810_pac as pac;
31#[cfg(feature = "nrf52811")] 31#[cfg(feature = "52811")]
32pub use nrf52811_pac as pac; 32pub use nrf52811_pac as pac;
33#[cfg(feature = "nrf52832")] 33#[cfg(feature = "52832")]
34pub use nrf52832_pac as pac; 34pub use nrf52832_pac as pac;
35#[cfg(feature = "nrf52833")] 35#[cfg(feature = "52833")]
36pub use nrf52833_pac as pac; 36pub use nrf52833_pac as pac;
37#[cfg(feature = "nrf52840")] 37#[cfg(feature = "52840")]
38pub use nrf52840_pac as pac; 38pub use nrf52840_pac as pac;
39 39
40pub mod gpiote; 40pub 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"
25panic-probe = "0.1.0" 25panic-probe = "0.1.0"
26nrf52840-hal = { version = "0.11.0" } 26nrf52840-hal = { version = "0.11.0" }
27embassy = { version = "0.1.0", path = "../embassy" } 27embassy = { version = "0.1.0", path = "../embassy" }
28embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt-trace", "nrf52840"] } 28embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt-trace", "52840"] }
29static-executor = { version = "0.1.0", features=["defmt"]} 29static-executor = { version = "0.1.0", features=["defmt"]}
30static-executor-cortex-m = { version = "0.1.0" } 30static-executor-cortex-m = { version = "0.1.0" }
31futures = { version = "0.3.5", default-features = false } 31futures = { version = "0.3.5", default-features = false }