diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-01-06 13:22:44 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-01-06 13:22:44 +0100 |
| commit | 209183ebea26743e95a140b47cdfd9d67083595b (patch) | |
| tree | d994cd5b4e7a089f61233f55ad463b5d46ee22ad | |
| parent | 41dcebe44621a51cc0c3f39b9cec14aefce63b0d (diff) | |
Fixes for new PACs.
| -rw-r--r-- | embassy-net-nrf91/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-rp/src/gpio.rs | 8 | ||||
| -rw-r--r-- | embassy-rp/src/pio/mod.rs | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/embassy-net-nrf91/Cargo.toml b/embassy-net-nrf91/Cargo.toml index 4e2f17ab2..6c7af9c80 100644 --- a/embassy-net-nrf91/Cargo.toml +++ b/embassy-net-nrf91/Cargo.toml | |||
| @@ -17,7 +17,7 @@ log = [ "dep:log" ] | |||
| 17 | defmt = { version = "0.3", optional = true } | 17 | defmt = { version = "0.3", optional = true } |
| 18 | log = { version = "0.4.14", optional = true } | 18 | log = { version = "0.4.14", optional = true } |
| 19 | 19 | ||
| 20 | nrf-pac = { git = "https://github.com/embassy-rs/nrf-pac", rev = "52e3a757f06035c94291bfc42b0c03f71e4d677e" } | 20 | nrf-pac = "0.1.0" |
| 21 | cortex-m = "0.7.7" | 21 | cortex-m = "0.7.7" |
| 22 | 22 | ||
| 23 | embassy-time = { version = "0.4.0", path = "../embassy-time" } | 23 | embassy-time = { version = "0.4.0", path = "../embassy-time" } |
diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs index 203192827..d3486b0fa 100644 --- a/embassy-rp/src/gpio.rs +++ b/embassy-rp/src/gpio.rs | |||
| @@ -624,10 +624,10 @@ impl<'d> Flex<'d> { | |||
| 624 | pub fn set_drive_strength(&mut self, strength: Drive) { | 624 | pub fn set_drive_strength(&mut self, strength: Drive) { |
| 625 | self.pin.pad_ctrl().modify(|w| { | 625 | self.pin.pad_ctrl().modify(|w| { |
| 626 | w.set_drive(match strength { | 626 | w.set_drive(match strength { |
| 627 | Drive::_2mA => pac::pads::vals::Drive::_2MA, | 627 | Drive::_2mA => pac::pads::vals::Drive::_2M_A, |
| 628 | Drive::_4mA => pac::pads::vals::Drive::_4MA, | 628 | Drive::_4mA => pac::pads::vals::Drive::_4M_A, |
| 629 | Drive::_8mA => pac::pads::vals::Drive::_8MA, | 629 | Drive::_8mA => pac::pads::vals::Drive::_8M_A, |
| 630 | Drive::_12mA => pac::pads::vals::Drive::_12MA, | 630 | Drive::_12mA => pac::pads::vals::Drive::_12M_A, |
| 631 | }); | 631 | }); |
| 632 | }); | 632 | }); |
| 633 | } | 633 | } |
diff --git a/embassy-rp/src/pio/mod.rs b/embassy-rp/src/pio/mod.rs index e3c25020f..8916cbef0 100644 --- a/embassy-rp/src/pio/mod.rs +++ b/embassy-rp/src/pio/mod.rs | |||
| @@ -230,10 +230,10 @@ impl<'l, PIO: Instance> Pin<'l, PIO> { | |||
| 230 | pub fn set_drive_strength(&mut self, strength: Drive) { | 230 | pub fn set_drive_strength(&mut self, strength: Drive) { |
| 231 | self.pin.pad_ctrl().modify(|w| { | 231 | self.pin.pad_ctrl().modify(|w| { |
| 232 | w.set_drive(match strength { | 232 | w.set_drive(match strength { |
| 233 | Drive::_2mA => pac::pads::vals::Drive::_2MA, | 233 | Drive::_2mA => pac::pads::vals::Drive::_2M_A, |
| 234 | Drive::_4mA => pac::pads::vals::Drive::_4MA, | 234 | Drive::_4mA => pac::pads::vals::Drive::_4M_A, |
| 235 | Drive::_8mA => pac::pads::vals::Drive::_8MA, | 235 | Drive::_8mA => pac::pads::vals::Drive::_8M_A, |
| 236 | Drive::_12mA => pac::pads::vals::Drive::_12MA, | 236 | Drive::_12mA => pac::pads::vals::Drive::_12M_A, |
| 237 | }); | 237 | }); |
| 238 | }); | 238 | }); |
| 239 | } | 239 | } |
