aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Balbi <[email protected]>2025-11-21 11:42:11 -0800
committerGitHub <[email protected]>2025-11-21 11:42:11 -0800
commitafbf72fb7842c926a9ac9b62f794ed010d4f7b27 (patch)
tree845fffcdc4106ef90945843fdab085cd2209e358
parent35dc874cb80b754676c5975548c4da475aee2675 (diff)
Update to latest PAC (#39)
It adds a complete Mux enum Co-authored-by: Felipe Balbi <[email protected]>
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--examples/Cargo.lock2
-rw-r--r--src/gpio.rs2
-rw-r--r--src/pins.rs6
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]]
325name = "mcxa-pac" 325name = "mcxa-pac"
326version = "0.1.0" 326version = "0.1.0"
327source = "git+https://github.com/OpenDevicePartnership/mcxa-pac?rev=3ab4c868f75a9240bb8fdce24982d34f2273aabf#3ab4c868f75a9240bb8fdce24982d34f2273aabf" 327source = "git+https://github.com/OpenDevicePartnership/mcxa-pac#3b36508ab1ac397861bae3431cc95c204f3ca6e9"
328dependencies = [ 328dependencies = [
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" }
22embedded-io = "0.6" 22embedded-io = "0.6"
23embedded-io-async = { version = "0.6.1" } 23embedded-io-async = { version = "0.6.1" }
24heapless = "0.8" 24heapless = "0.8"
25mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt", "critical-section"], rev = "3ab4c868f75a9240bb8fdce24982d34f2273aabf", version = "0.1.0" } 25mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt", "critical-section"], version = "0.1.0" }
26nb = "1.1.0" 26nb = "1.1.0"
27paste = "1.0.15" 27paste = "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]]
443name = "mcxa-pac" 443name = "mcxa-pac"
444version = "0.1.0" 444version = "0.1.0"
445source = "git+https://github.com/OpenDevicePartnership/mcxa-pac?rev=3ab4c868f75a9240bb8fdce24982d34f2273aabf#3ab4c868f75a9240bb8fdce24982d34f2273aabf" 445source = "git+https://github.com/OpenDevicePartnership/mcxa-pac#3b36508ab1ac397861bae3431cc95c204f3ca6e9"
446dependencies = [ 446dependencies = [
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()