diff options
| author | Felipe Balbi <[email protected]> | 2025-11-21 11:42:11 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-21 11:42:11 -0800 |
| commit | afbf72fb7842c926a9ac9b62f794ed010d4f7b27 (patch) | |
| tree | 845fffcdc4106ef90945843fdab085cd2209e358 | |
| parent | 35dc874cb80b754676c5975548c4da475aee2675 (diff) | |
Update to latest PAC (#39)
It adds a complete Mux enum
Co-authored-by: Felipe Balbi <[email protected]>
| -rw-r--r-- | Cargo.lock | 2 | ||||
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/Cargo.lock | 2 | ||||
| -rw-r--r-- | src/gpio.rs | 2 | ||||
| -rw-r--r-- | src/pins.rs | 6 |
5 files changed, 7 insertions, 7 deletions
diff --git a/Cargo.lock b/Cargo.lock index 46322c4de..d9f4f08af 100644 --- a/Cargo.lock +++ b/Cargo.lock | |||
| @@ -324,7 +324,7 @@ checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092" | |||
| 324 | [[package]] | 324 | [[package]] |
| 325 | name = "mcxa-pac" | 325 | name = "mcxa-pac" |
| 326 | version = "0.1.0" | 326 | version = "0.1.0" |
| 327 | source = "git+https://github.com/OpenDevicePartnership/mcxa-pac?rev=3ab4c868f75a9240bb8fdce24982d34f2273aabf#3ab4c868f75a9240bb8fdce24982d34f2273aabf" | 327 | source = "git+https://github.com/OpenDevicePartnership/mcxa-pac#3b36508ab1ac397861bae3431cc95c204f3ca6e9" |
| 328 | dependencies = [ | 328 | dependencies = [ |
| 329 | "cortex-m", | 329 | "cortex-m", |
| 330 | "cortex-m-rt", | 330 | "cortex-m-rt", |
diff --git a/Cargo.toml b/Cargo.toml index 0ed6995c6..bf46b3107 100644 --- a/Cargo.toml +++ b/Cargo.toml | |||
| @@ -22,7 +22,7 @@ embedded-hal-nb = { version = "1.0" } | |||
| 22 | embedded-io = "0.6" | 22 | embedded-io = "0.6" |
| 23 | embedded-io-async = { version = "0.6.1" } | 23 | embedded-io-async = { version = "0.6.1" } |
| 24 | heapless = "0.8" | 24 | heapless = "0.8" |
| 25 | mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt", "critical-section"], rev = "3ab4c868f75a9240bb8fdce24982d34f2273aabf", version = "0.1.0" } | 25 | mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt", "critical-section"], version = "0.1.0" } |
| 26 | nb = "1.1.0" | 26 | nb = "1.1.0" |
| 27 | paste = "1.0.15" | 27 | paste = "1.0.15" |
| 28 | 28 | ||
diff --git a/examples/Cargo.lock b/examples/Cargo.lock index 14f472cbf..473ce2b3f 100644 --- a/examples/Cargo.lock +++ b/examples/Cargo.lock | |||
| @@ -442,7 +442,7 @@ checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092" | |||
| 442 | [[package]] | 442 | [[package]] |
| 443 | name = "mcxa-pac" | 443 | name = "mcxa-pac" |
| 444 | version = "0.1.0" | 444 | version = "0.1.0" |
| 445 | source = "git+https://github.com/OpenDevicePartnership/mcxa-pac?rev=3ab4c868f75a9240bb8fdce24982d34f2273aabf#3ab4c868f75a9240bb8fdce24982d34f2273aabf" | 445 | source = "git+https://github.com/OpenDevicePartnership/mcxa-pac#3b36508ab1ac397861bae3431cc95c204f3ca6e9" |
| 446 | dependencies = [ | 446 | dependencies = [ |
| 447 | "cortex-m", | 447 | "cortex-m", |
| 448 | "cortex-m-rt", | 448 | "cortex-m-rt", |
diff --git a/src/gpio.rs b/src/gpio.rs index 9565fbb6e..7dba7ab4f 100644 --- a/src/gpio.rs +++ b/src/gpio.rs | |||
| @@ -484,7 +484,7 @@ impl<'d> Flex<'d> { | |||
| 484 | /// The pin remains unmodified. The initial output level is unspecified, but | 484 | /// The pin remains unmodified. The initial output level is unspecified, but |
| 485 | /// can be changed before the pin is put into output mode. | 485 | /// can be changed before the pin is put into output mode. |
| 486 | pub fn new(pin: Peri<'d, impl GpioPin>) -> Self { | 486 | pub fn new(pin: Peri<'d, impl GpioPin>) -> Self { |
| 487 | pin.set_function(Mux::Mux00); | 487 | pin.set_function(Mux::Mux0); |
| 488 | Self { | 488 | Self { |
| 489 | pin: pin.into(), | 489 | pin: pin.into(), |
| 490 | _marker: PhantomData, | 490 | _marker: PhantomData, |
diff --git a/src/pins.rs b/src/pins.rs index f65195dd2..0a83a41f0 100644 --- a/src/pins.rs +++ b/src/pins.rs | |||
| @@ -14,7 +14,7 @@ pub unsafe fn configure_uart2_pins_port2() { | |||
| 14 | .dse() | 14 | .dse() |
| 15 | .dse1() | 15 | .dse1() |
| 16 | .mux() | 16 | .mux() |
| 17 | .mux11() | 17 | .mux3() |
| 18 | .ibe() | 18 | .ibe() |
| 19 | .ibe1() | 19 | .ibe1() |
| 20 | }); | 20 | }); |
| @@ -28,7 +28,7 @@ pub unsafe fn configure_uart2_pins_port2() { | |||
| 28 | .dse() | 28 | .dse() |
| 29 | .dse1() | 29 | .dse1() |
| 30 | .mux() | 30 | .mux() |
| 31 | .mux11() | 31 | .mux3() |
| 32 | .ibe() | 32 | .ibe() |
| 33 | .ibe1() | 33 | .ibe1() |
| 34 | }); | 34 | }); |
| @@ -50,7 +50,7 @@ pub unsafe fn configure_adc_pins() { | |||
| 50 | .dse() | 50 | .dse() |
| 51 | .dse0() | 51 | .dse0() |
| 52 | .mux() | 52 | .mux() |
| 53 | .mux00() | 53 | .mux0() |
| 54 | .ibe() | 54 | .ibe() |
| 55 | .ibe0() | 55 | .ibe0() |
| 56 | .inv() | 56 | .inv() |
