diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-04-26 20:39:55 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-26 20:39:55 +0000 |
| commit | 1cf26f0eb3181b04ce2c520a4814c4b3a99bb407 (patch) | |
| tree | 7a115b3a594502ea91a12702e94b7dc7a851cc95 | |
| parent | 759d911b5046b1f6201ea9728f1b42e4a0153659 (diff) | |
| parent | d91c37dae3225ac2776c96f3205aec940e10b668 (diff) | |
Merge #1402
1402: rp: remove pio Cargo feature. r=Dirbaio a=Dirbaio
We shouldn't have Cargo features if their only purpose is reduce cold build time a bit.
bors r+
Co-authored-by: Dario Nieuwenhuis <[email protected]>
| -rw-r--r-- | embassy-rp/Cargo.toml | 5 | ||||
| -rw-r--r-- | embassy-rp/src/lib.rs | 24 | ||||
| -rw-r--r-- | examples/rp/Cargo.toml | 2 |
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 = [] | |||
| 29 | rom-func-cache = [] | 29 | rom-func-cache = [] |
| 30 | intrinsics = [] | 30 | intrinsics = [] |
| 31 | rom-v2-intrinsics = [] | 31 | rom-v2-intrinsics = [] |
| 32 | pio = ["dep:pio", "dep:pio-proc"] | ||
| 33 | 32 | ||
| 34 | # Enable nightly-only features | 33 | # Enable nightly-only features |
| 35 | nightly = ["embassy-executor/nightly", "embedded-hal-1", "embedded-hal-async", "embassy-embedded-hal/nightly", "dep:embassy-usb-driver", "dep:embedded-io"] | 34 | nightly = ["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} | |||
| 70 | embedded-hal-nb = { version = "=1.0.0-alpha.2", optional = true} | 69 | embedded-hal-nb = { version = "=1.0.0-alpha.2", optional = true} |
| 71 | 70 | ||
| 72 | paste = "1.0" | 71 | paste = "1.0" |
| 73 | pio-proc = {version= "0.2", optional = true} | 72 | pio-proc = {version= "0.2" } |
| 74 | pio = {version= "0.2.1", optional = true} | 73 | pio = {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; | |||
| 11 | mod intrinsics; | 11 | mod intrinsics; |
| 12 | 12 | ||
| 13 | pub mod adc; | 13 | pub mod adc; |
| 14 | pub mod clocks; | ||
| 14 | pub mod dma; | 15 | pub mod dma; |
| 16 | pub mod flash; | ||
| 15 | mod float; | 17 | mod float; |
| 16 | pub mod gpio; | 18 | pub mod gpio; |
| 17 | pub mod i2c; | 19 | pub mod i2c; |
| 18 | pub mod interrupt; | 20 | pub mod interrupt; |
| 19 | 21 | pub mod multicore; | |
| 20 | #[cfg(feature = "pio")] | ||
| 21 | pub mod pio; | ||
| 22 | #[cfg(feature = "pio")] | ||
| 23 | pub mod pio_instr_util; | ||
| 24 | pub mod pwm; | 22 | pub mod pwm; |
| 25 | #[cfg(feature = "pio")] | 23 | mod reset; |
| 26 | pub mod relocate; | ||
| 27 | |||
| 28 | pub mod rom_data; | 24 | pub mod rom_data; |
| 29 | pub mod rtc; | 25 | pub mod rtc; |
| 30 | pub mod spi; | 26 | pub mod spi; |
| @@ -33,15 +29,15 @@ pub mod timer; | |||
| 33 | pub mod uart; | 29 | pub mod uart; |
| 34 | #[cfg(feature = "nightly")] | 30 | #[cfg(feature = "nightly")] |
| 35 | pub mod usb; | 31 | pub mod usb; |
| 36 | |||
| 37 | pub mod clocks; | ||
| 38 | pub mod flash; | ||
| 39 | pub mod multicore; | ||
| 40 | mod reset; | ||
| 41 | pub mod watchdog; | 32 | pub mod watchdog; |
| 42 | 33 | ||
| 43 | // Reexports | 34 | // PIO |
| 35 | // TODO: move `pio_instr_util` and `relocate` to inside `pio` | ||
| 36 | pub mod pio; | ||
| 37 | pub mod pio_instr_util; | ||
| 38 | pub mod relocate; | ||
| 44 | 39 | ||
| 40 | // Reexports | ||
| 45 | pub use embassy_cortex_m::executor; | 41 | pub use embassy_cortex_m::executor; |
| 46 | pub use embassy_cortex_m::interrupt::_export::interrupt; | 42 | pub use embassy_cortex_m::interrupt::_export::interrupt; |
| 47 | pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef}; | 43 | pub 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", | |||
| 10 | embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] } | 10 | embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] } |
| 11 | embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] } | 11 | embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] } |
| 12 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["nightly", "unstable-traits", "defmt", "defmt-timestamp-uptime"] } | 12 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["nightly", "unstable-traits", "defmt", "defmt-timestamp-uptime"] } |
| 13 | embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver", "pio", "critical-section-impl"] } | 13 | embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver", "critical-section-impl"] } |
| 14 | embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"] } | 14 | embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"] } |
| 15 | embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "nightly", "tcp", "dhcpv4", "medium-ethernet"] } | 15 | embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "nightly", "tcp", "dhcpv4", "medium-ethernet"] } |
| 16 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } | 16 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } |
