aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-rp/Cargo.toml5
-rw-r--r--embassy-rp/src/lib.rs24
-rw-r--r--examples/rp/Cargo.toml2
3 files changed, 13 insertions, 18 deletions
diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml
index f784ab33d..e7a1324c1 100644
--- a/embassy-rp/Cargo.toml
+++ b/embassy-rp/Cargo.toml
@@ -29,7 +29,6 @@ time-driver = []
29rom-func-cache = [] 29rom-func-cache = []
30intrinsics = [] 30intrinsics = []
31rom-v2-intrinsics = [] 31rom-v2-intrinsics = []
32pio = ["dep:pio", "dep:pio-proc"]
33 32
34# Enable nightly-only features 33# Enable nightly-only features
35nightly = ["embassy-executor/nightly", "embedded-hal-1", "embedded-hal-async", "embassy-embedded-hal/nightly", "dep:embassy-usb-driver", "dep:embedded-io"] 34nightly = ["embassy-executor/nightly", "embedded-hal-1", "embedded-hal-async", "embassy-embedded-hal/nightly", "dep:embassy-usb-driver", "dep:embedded-io"]
@@ -70,5 +69,5 @@ embedded-hal-async = { version = "=0.2.0-alpha.1", optional = true}
70embedded-hal-nb = { version = "=1.0.0-alpha.2", optional = true} 69embedded-hal-nb = { version = "=1.0.0-alpha.2", optional = true}
71 70
72paste = "1.0" 71paste = "1.0"
73pio-proc = {version= "0.2", optional = true} 72pio-proc = {version= "0.2" }
74pio = {version= "0.2.1", optional = true} 73pio = {version= "0.2.1" }
diff --git a/embassy-rp/src/lib.rs b/embassy-rp/src/lib.rs
index aa8660320..697f4308b 100644
--- a/embassy-rp/src/lib.rs
+++ b/embassy-rp/src/lib.rs
@@ -11,20 +11,16 @@ mod critical_section_impl;
11mod intrinsics; 11mod intrinsics;
12 12
13pub mod adc; 13pub mod adc;
14pub mod clocks;
14pub mod dma; 15pub mod dma;
16pub mod flash;
15mod float; 17mod float;
16pub mod gpio; 18pub mod gpio;
17pub mod i2c; 19pub mod i2c;
18pub mod interrupt; 20pub mod interrupt;
19 21pub mod multicore;
20#[cfg(feature = "pio")]
21pub mod pio;
22#[cfg(feature = "pio")]
23pub mod pio_instr_util;
24pub mod pwm; 22pub mod pwm;
25#[cfg(feature = "pio")] 23mod reset;
26pub mod relocate;
27
28pub mod rom_data; 24pub mod rom_data;
29pub mod rtc; 25pub mod rtc;
30pub mod spi; 26pub mod spi;
@@ -33,15 +29,15 @@ pub mod timer;
33pub mod uart; 29pub mod uart;
34#[cfg(feature = "nightly")] 30#[cfg(feature = "nightly")]
35pub mod usb; 31pub mod usb;
36
37pub mod clocks;
38pub mod flash;
39pub mod multicore;
40mod reset;
41pub mod watchdog; 32pub mod watchdog;
42 33
43// Reexports 34// PIO
35// TODO: move `pio_instr_util` and `relocate` to inside `pio`
36pub mod pio;
37pub mod pio_instr_util;
38pub mod relocate;
44 39
40// Reexports
45pub use embassy_cortex_m::executor; 41pub use embassy_cortex_m::executor;
46pub use embassy_cortex_m::interrupt::_export::interrupt; 42pub use embassy_cortex_m::interrupt::_export::interrupt;
47pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef}; 43pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef};
diff --git a/examples/rp/Cargo.toml b/examples/rp/Cargo.toml
index 45af8762e..7f65a00d7 100644
--- a/examples/rp/Cargo.toml
+++ b/examples/rp/Cargo.toml
@@ -10,7 +10,7 @@ embassy-embedded-hal = { version = "0.1.0", path = "../../embassy-embedded-hal",
10embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] } 10embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] }
11embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] } 11embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] }
12embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["nightly", "unstable-traits", "defmt", "defmt-timestamp-uptime"] } 12embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["nightly", "unstable-traits", "defmt", "defmt-timestamp-uptime"] }
13embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver", "pio", "critical-section-impl"] } 13embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver", "critical-section-impl"] }
14embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"] } 14embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"] }
15embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "nightly", "tcp", "dhcpv4", "medium-ethernet"] } 15embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "nightly", "tcp", "dhcpv4", "medium-ethernet"] }
16embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } 16embassy-futures = { version = "0.1.0", path = "../../embassy-futures" }