Skip to content

Commit 0ccaf3d

Browse files
authored
Update pio to version 0.3.0 (#923)
1 parent 4242fed commit 0ccaf3d

File tree

16 files changed

+26
-22
lines changed

16 files changed

+26
-22
lines changed

rp2040-hal-examples/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ hd44780-driver = "0.4.0"
3131
nb = "1.0"
3232
panic-halt = "0.2.0"
3333
panic-probe = {version = "0.3.1", features = ["print-defmt"]}
34-
pio = "0.2.0"
35-
pio-proc = "0.2.0"
34+
pio = "0.3.0"
3635
# We aren't using this, but embedded-hal-bus 0.2 unconditionally requires atomics.
3736
# Should be fixed in e-h-b 0.3 via https://github.com/rust-embedded/embedded-hal/pull/607
3837
portable-atomic = {version = "1.7.0", features = ["critical-section"]}

rp2040-hal-examples/src/bin/pio_dma.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn main() -> ! {
5151

5252
// Define a PIO program which reads data from the TX FIFO bit by bit, configures the LED
5353
// according to the data, and then writes the data back to the RX FIFO.
54-
let program = pio_proc::pio_asm!(
54+
let program = pio::pio_asm!(
5555
".wrap_target",
5656
" out x, 1",
5757
" mov pins, x",

rp2040-hal-examples/src/bin/pio_proc_blink.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! This example toggles the GPIO25 pin, using a PIO program compiled via pio_proc::pio!().
1+
//! This example toggles the GPIO25 pin, using a PIO program compiled via pio::pio_asm!().
22
//!
33
//! If a LED is connected to that pin, like on a Pico board, the LED should blink.
44
#![no_std]
@@ -41,7 +41,7 @@ fn main() -> ! {
4141
let led_pin_id = led.id().num;
4242

4343
// Define some simple PIO program.
44-
let program = pio_proc::pio_asm!(
44+
let program = pio::pio_asm!(
4545
".wrap_target",
4646
"set pins, 1 [31]",
4747
"set pins, 0 [31]",

rp2040-hal-examples/src/bin/pio_side_set.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! This example toggles the GPIO25 pin, using a PIO program compiled via pio_proc::pio!().
1+
//! This example toggles the GPIO25 pin, using a PIO program compiled via pio::pio_asm!().
22
//!
33
//! If a LED is connected to that pin, like on a Pico board, the LED should blink.
44
//!
@@ -46,7 +46,7 @@ fn main() -> ! {
4646
let led_pin_id = led.id().num;
4747

4848
// Define some simple PIO program.
49-
let program = pio_proc::pio_asm!(
49+
let program = pio::pio_asm!(
5050
".side_set 1", // each instruction must set 1 bit
5151
".wrap_target",
5252
" nop side 1 [15]",

rp2040-hal-examples/src/bin/pio_synchronized.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn main() -> ! {
4646
let pin1 = gp1.id().num;
4747

4848
// Define some simple PIO program.
49-
let program = pio_proc::pio_asm!(
49+
let program = pio::pio_asm!(
5050
"
5151
.wrap_target
5252
set pins, 1 [31]

rp2040-hal/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ The Minimum-Supported Rust Version (MSRV) for the next release is 1.81
1313

1414
- Bump MSRV to 1.81 because the crate `home` (an indirect build-depencency) requires it.
1515

16+
### Changed
17+
18+
- Update to pio 0.3.0
19+
1620
## [0.11.0] - 2024-12-22
1721

1822
### MSRV

rp2040-hal/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fugit = "0.3.6"
3333
itertools = {version = "0.10.1", default-features = false}
3434
nb = "1.0"
3535
paste = "1.0"
36-
pio = "0.2.0"
36+
pio = "0.3.0"
3737
rand_core = "0.6.3"
3838
rp-binary-info = { version = "0.1.0", path = "../rp-binary-info" }
3939
rp-hal-common = {version="0.1.0", path="../rp-hal-common"}
@@ -51,7 +51,6 @@ rtic-monotonic = {version = "1.0.0", optional = true}
5151

5252
[dev-dependencies]
5353
# Non-optional dependencies. Keep these sorted by name.
54-
pio-proc = "0.2.0"
5554
rand = {version = "0.8.5", default-features = false}
5655

5756
# Optional dependencies. Keep these sorted by name.

rp2040-hal/src/pio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ impl<P: PIOExt> PIO<P> {
285285
/// let mut peripherals = pac::Peripherals::take().unwrap();
286286
/// let (mut pio, sm0, _, _, _) = peripherals.PIO0.split(&mut peripherals.RESETS);
287287
/// // Install a program in instruction memory.
288-
/// let program = pio_proc::pio_asm!(
288+
/// let program = pio::pio_asm!(
289289
/// ".wrap_target",
290290
/// "set pins, 1 [31]",
291291
/// "set pins, 0 [31]",

rp235x-hal-examples/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ hd44780-driver = "0.4.0"
3030
heapless = "0.8.0"
3131
nb = "1.0"
3232
panic-halt = "0.2.0"
33-
pio = "0.2.0"
34-
pio-proc = "0.2.0"
33+
pio = "0.3.0"
3534
rp235x-hal = {path = "../rp235x-hal", version = "0.3.0", features = ["binary-info", "critical-section-impl", "rt", "defmt"]}
3635
# The examples use features not yet available in rp-binary-info 0.1.0,
3736
# so the minimum version implied by the rp235x-hal 0.3.0 dependency is not sufficient.

rp235x-hal-examples/src/bin/pio_dma.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn main() -> ! {
5555

5656
// Define a PIO program which reads data from the TX FIFO bit by bit, configures the LED
5757
// according to the data, and then writes the data back to the RX FIFO.
58-
let program = pio_proc::pio_asm!(
58+
let program = pio::pio_asm!(
5959
".wrap_target",
6060
" out x, 1",
6161
" mov pins, x",

0 commit comments

Comments
 (0)