diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-08-12 00:02:15 +0200 |
|---|---|---|
| committer | Caleb Jamison <[email protected]> | 2024-08-12 03:25:41 -0400 |
| commit | 9dc4375f185d5098d9b61116bb5c5279e7298222 (patch) | |
| tree | 69efe3704a609b9d802c678facb3404d16e8c7eb | |
| parent | 0d41566c245d6e4cf5359b237b61b578f81a0524 (diff) | |
rp: update PAC, fix CI.
| -rwxr-xr-x | .github/ci/test.sh | 2 | ||||
| -rwxr-xr-x | ci.sh | 7 | ||||
| -rw-r--r-- | embassy-rp/Cargo.toml | 5 | ||||
| -rw-r--r-- | embassy-rp/src/dma.rs | 6 | ||||
| -rw-r--r-- | examples/boot/application/rp/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/boot/bootloader/rp/Cargo.toml | 2 |
6 files changed, 11 insertions, 13 deletions
diff --git a/.github/ci/test.sh b/.github/ci/test.sh index 41da644fc..771251bd1 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh | |||
| @@ -21,7 +21,7 @@ cargo test --manifest-path ./embassy-boot/Cargo.toml --features ed25519-salty | |||
| 21 | 21 | ||
| 22 | cargo test --manifest-path ./embassy-nrf/Cargo.toml --no-default-features --features nrf52840,time-driver-rtc1,gpiote | 22 | cargo test --manifest-path ./embassy-nrf/Cargo.toml --no-default-features --features nrf52840,time-driver-rtc1,gpiote |
| 23 | 23 | ||
| 24 | cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver | 24 | cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp2040 |
| 25 | 25 | ||
| 26 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,exti,time-driver-any,exti | 26 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,exti,time-driver-any,exti |
| 27 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f732ze,exti,time-driver-any,exti | 27 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f732ze,exti,time-driver-any,exti |
| @@ -177,12 +177,12 @@ cargo batch \ | |||
| 177 | --- build --release --manifest-path cyw43/Cargo.toml --target thumbv6m-none-eabi --features 'defmt,firmware-logs' \ | 177 | --- build --release --manifest-path cyw43/Cargo.toml --target thumbv6m-none-eabi --features 'defmt,firmware-logs' \ |
| 178 | --- build --release --manifest-path cyw43/Cargo.toml --target thumbv6m-none-eabi --features 'log,firmware-logs,bluetooth' \ | 178 | --- build --release --manifest-path cyw43/Cargo.toml --target thumbv6m-none-eabi --features 'log,firmware-logs,bluetooth' \ |
| 179 | --- build --release --manifest-path cyw43/Cargo.toml --target thumbv6m-none-eabi --features 'defmt,firmware-logs,bluetooth' \ | 179 | --- build --release --manifest-path cyw43/Cargo.toml --target thumbv6m-none-eabi --features 'defmt,firmware-logs,bluetooth' \ |
| 180 | --- build --release --manifest-path cyw43-pio/Cargo.toml --target thumbv6m-none-eabi --features '' \ | 180 | --- build --release --manifest-path cyw43-pio/Cargo.toml --target thumbv6m-none-eabi --features 'embassy-rp/rp2040' \ |
| 181 | --- build --release --manifest-path cyw43-pio/Cargo.toml --target thumbv6m-none-eabi --features 'overclock' \ | 181 | --- build --release --manifest-path cyw43-pio/Cargo.toml --target thumbv6m-none-eabi --features 'embassy-rp/rp2040,overclock' \ |
| 182 | --- build --release --manifest-path embassy-boot-nrf/Cargo.toml --target thumbv7em-none-eabi --features embassy-nrf/nrf52840 \ | 182 | --- build --release --manifest-path embassy-boot-nrf/Cargo.toml --target thumbv7em-none-eabi --features embassy-nrf/nrf52840 \ |
| 183 | --- build --release --manifest-path embassy-boot-nrf/Cargo.toml --target thumbv8m.main-none-eabihf --features embassy-nrf/nrf9160-ns \ | 183 | --- build --release --manifest-path embassy-boot-nrf/Cargo.toml --target thumbv8m.main-none-eabihf --features embassy-nrf/nrf9160-ns \ |
| 184 | --- build --release --manifest-path embassy-boot-nrf/Cargo.toml --target thumbv8m.main-none-eabihf --features embassy-nrf/nrf9120-ns \ | 184 | --- build --release --manifest-path embassy-boot-nrf/Cargo.toml --target thumbv8m.main-none-eabihf --features embassy-nrf/nrf9120-ns \ |
| 185 | --- build --release --manifest-path embassy-boot-rp/Cargo.toml --target thumbv6m-none-eabi \ | 185 | --- build --release --manifest-path embassy-boot-rp/Cargo.toml --target thumbv6m-none-eabi --features embassy-rp/rp2040 \ |
| 186 | --- build --release --manifest-path embassy-boot-stm32/Cargo.toml --target thumbv7em-none-eabi --features embassy-stm32/stm32l496zg \ | 186 | --- build --release --manifest-path embassy-boot-stm32/Cargo.toml --target thumbv7em-none-eabi --features embassy-stm32/stm32l496zg \ |
| 187 | --- build --release --manifest-path docs/examples/basic/Cargo.toml --target thumbv7em-none-eabi \ | 187 | --- build --release --manifest-path docs/examples/basic/Cargo.toml --target thumbv7em-none-eabi \ |
| 188 | --- build --release --manifest-path docs/examples/layer-by-layer/blinky-pac/Cargo.toml --target thumbv7em-none-eabi \ | 188 | --- build --release --manifest-path docs/examples/layer-by-layer/blinky-pac/Cargo.toml --target thumbv7em-none-eabi \ |
| @@ -197,6 +197,7 @@ cargo batch \ | |||
| 197 | --- build --release --manifest-path examples/nrf9151/ns/Cargo.toml --target thumbv8m.main-none-eabihf --out-dir out/examples/nrf9151/ns \ | 197 | --- build --release --manifest-path examples/nrf9151/ns/Cargo.toml --target thumbv8m.main-none-eabihf --out-dir out/examples/nrf9151/ns \ |
| 198 | --- build --release --manifest-path examples/nrf51/Cargo.toml --target thumbv6m-none-eabi --out-dir out/examples/nrf51 \ | 198 | --- build --release --manifest-path examples/nrf51/Cargo.toml --target thumbv6m-none-eabi --out-dir out/examples/nrf51 \ |
| 199 | --- build --release --manifest-path examples/rp/Cargo.toml --target thumbv6m-none-eabi --out-dir out/examples/rp \ | 199 | --- build --release --manifest-path examples/rp/Cargo.toml --target thumbv6m-none-eabi --out-dir out/examples/rp \ |
| 200 | --- build --release --manifest-path examples/rp23/Cargo.toml --target thumbv8m.main-none-eabihf --out-dir out/examples/rp23 \ | ||
| 200 | --- build --release --manifest-path examples/stm32f0/Cargo.toml --target thumbv6m-none-eabi --out-dir out/examples/stm32f0 \ | 201 | --- build --release --manifest-path examples/stm32f0/Cargo.toml --target thumbv6m-none-eabi --out-dir out/examples/stm32f0 \ |
| 201 | --- build --release --manifest-path examples/stm32f1/Cargo.toml --target thumbv7m-none-eabi --out-dir out/examples/stm32f1 \ | 202 | --- build --release --manifest-path examples/stm32f1/Cargo.toml --target thumbv7m-none-eabi --out-dir out/examples/stm32f1 \ |
| 202 | --- build --release --manifest-path examples/stm32f2/Cargo.toml --target thumbv7m-none-eabi --out-dir out/examples/stm32f2 \ | 203 | --- build --release --manifest-path examples/stm32f2/Cargo.toml --target thumbv7m-none-eabi --out-dir out/examples/stm32f2 \ |
diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml index 2e821f4a0..3cc6c4e6a 100644 --- a/embassy-rp/Cargo.toml +++ b/embassy-rp/Cargo.toml | |||
| @@ -124,7 +124,7 @@ embedded-storage-async = { version = "0.4.1" } | |||
| 124 | rand_core = "0.6.4" | 124 | rand_core = "0.6.4" |
| 125 | fixed = "1.23.1" | 125 | fixed = "1.23.1" |
| 126 | 126 | ||
| 127 | rp-pac = { version = "6.0.0", feature = ["rt"] } | 127 | rp-pac = { git = "https://github.com/embassy-rs/rp-pac.git", rev = "a7f42d25517f7124ad3b4ed492dec8b0f50a0e6c", feature = ["rt"] } |
| 128 | 128 | ||
| 129 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } | 129 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } |
| 130 | embedded-hal-1 = { package = "embedded-hal", version = "1.0" } | 130 | embedded-hal-1 = { package = "embedded-hal", version = "1.0" } |
| @@ -140,6 +140,3 @@ sha2-const-stable = "0.1" | |||
| 140 | [dev-dependencies] | 140 | [dev-dependencies] |
| 141 | embassy-executor = { version = "0.6.0", path = "../embassy-executor", features = ["arch-std", "executor-thread"] } | 141 | embassy-executor = { version = "0.6.0", path = "../embassy-executor", features = ["arch-std", "executor-thread"] } |
| 142 | static_cell = { version = "2" } | 142 | static_cell = { version = "2" } |
| 143 | |||
| 144 | [patch.crates-io] | ||
| 145 | rp-pac = { git = "https://github.com/embassy-rs/rp-pac.git" } | ||
diff --git a/embassy-rp/src/dma.rs b/embassy-rp/src/dma.rs index df10da0b6..b00ab3f3b 100644 --- a/embassy-rp/src/dma.rs +++ b/embassy-rp/src/dma.rs | |||
| @@ -15,7 +15,7 @@ use crate::{interrupt, pac, peripherals}; | |||
| 15 | #[cfg(feature = "rt")] | 15 | #[cfg(feature = "rt")] |
| 16 | #[interrupt] | 16 | #[interrupt] |
| 17 | fn DMA_IRQ_0() { | 17 | fn DMA_IRQ_0() { |
| 18 | let ints0 = pac::DMA.ints0().read().ints0(); | 18 | let ints0 = pac::DMA.ints(0).read(); |
| 19 | for channel in 0..CHANNEL_COUNT { | 19 | for channel in 0..CHANNEL_COUNT { |
| 20 | let ctrl_trig = pac::DMA.ch(channel).ctrl_trig().read(); | 20 | let ctrl_trig = pac::DMA.ch(channel).ctrl_trig().read(); |
| 21 | if ctrl_trig.ahb_error() { | 21 | if ctrl_trig.ahb_error() { |
| @@ -26,14 +26,14 @@ fn DMA_IRQ_0() { | |||
| 26 | CHANNEL_WAKERS[channel].wake(); | 26 | CHANNEL_WAKERS[channel].wake(); |
| 27 | } | 27 | } |
| 28 | } | 28 | } |
| 29 | pac::DMA.ints0().write(|w| w.set_ints0(ints0)); | 29 | pac::DMA.ints(0).write_value(ints0); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | pub(crate) unsafe fn init() { | 32 | pub(crate) unsafe fn init() { |
| 33 | interrupt::DMA_IRQ_0.disable(); | 33 | interrupt::DMA_IRQ_0.disable(); |
| 34 | interrupt::DMA_IRQ_0.set_priority(interrupt::Priority::P3); | 34 | interrupt::DMA_IRQ_0.set_priority(interrupt::Priority::P3); |
| 35 | 35 | ||
| 36 | pac::DMA.inte0().write(|w| w.set_inte0(0xFFFF)); | 36 | pac::DMA.inte(0).write_value(0xFFFF); |
| 37 | 37 | ||
| 38 | interrupt::DMA_IRQ_0.enable(); | 38 | interrupt::DMA_IRQ_0.enable(); |
| 39 | } | 39 | } |
diff --git a/examples/boot/application/rp/Cargo.toml b/examples/boot/application/rp/Cargo.toml index c109c0732..8bb8afdfe 100644 --- a/examples/boot/application/rp/Cargo.toml +++ b/examples/boot/application/rp/Cargo.toml | |||
| @@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0" | |||
| 8 | embassy-sync = { version = "0.6.0", path = "../../../../embassy-sync" } | 8 | embassy-sync = { version = "0.6.0", path = "../../../../embassy-sync" } |
| 9 | embassy-executor = { version = "0.6.0", path = "../../../../embassy-executor", features = ["task-arena-size-16384", "arch-cortex-m", "executor-thread", "integrated-timers", "arch-cortex-m", "executor-thread"] } | 9 | embassy-executor = { version = "0.6.0", path = "../../../../embassy-executor", features = ["task-arena-size-16384", "arch-cortex-m", "executor-thread", "integrated-timers", "arch-cortex-m", "executor-thread"] } |
| 10 | embassy-time = { version = "0.3.2", path = "../../../../embassy-time", features = [] } | 10 | embassy-time = { version = "0.3.2", path = "../../../../embassy-time", features = [] } |
| 11 | embassy-rp = { version = "0.2.0", path = "../../../../embassy-rp", features = ["time-driver", ] } | 11 | embassy-rp = { version = "0.2.0", path = "../../../../embassy-rp", features = ["time-driver", "rp2040"] } |
| 12 | embassy-boot-rp = { version = "0.3.0", path = "../../../../embassy-boot-rp", features = [] } | 12 | embassy-boot-rp = { version = "0.3.0", path = "../../../../embassy-boot-rp", features = [] } |
| 13 | embassy-embedded-hal = { version = "0.2.0", path = "../../../../embassy-embedded-hal" } | 13 | embassy-embedded-hal = { version = "0.2.0", path = "../../../../embassy-embedded-hal" } |
| 14 | 14 | ||
diff --git a/examples/boot/bootloader/rp/Cargo.toml b/examples/boot/bootloader/rp/Cargo.toml index c15c980ca..9df396e5e 100644 --- a/examples/boot/bootloader/rp/Cargo.toml +++ b/examples/boot/bootloader/rp/Cargo.toml | |||
| @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0" | |||
| 9 | defmt = { version = "0.3", optional = true } | 9 | defmt = { version = "0.3", optional = true } |
| 10 | defmt-rtt = { version = "0.4", optional = true } | 10 | defmt-rtt = { version = "0.4", optional = true } |
| 11 | 11 | ||
| 12 | embassy-rp = { path = "../../../../embassy-rp", features = [] } | 12 | embassy-rp = { path = "../../../../embassy-rp", features = ["rp2040"] } |
| 13 | embassy-boot-rp = { path = "../../../../embassy-boot-rp" } | 13 | embassy-boot-rp = { path = "../../../../embassy-boot-rp" } |
| 14 | embassy-sync = { version = "0.6.0", path = "../../../../embassy-sync" } | 14 | embassy-sync = { version = "0.6.0", path = "../../../../embassy-sync" } |
| 15 | embassy-time = { path = "../../../../embassy-time", features = [] } | 15 | embassy-time = { path = "../../../../embassy-time", features = [] } |
