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 /src | |
| parent | 35dc874cb80b754676c5975548c4da475aee2675 (diff) | |
Update to latest PAC (#39)
It adds a complete Mux enum
Co-authored-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/gpio.rs | 2 | ||||
| -rw-r--r-- | src/pins.rs | 6 |
2 files changed, 4 insertions, 4 deletions
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() |
