diff options
Diffstat (limited to 'examples/src/lib.rs')
| -rw-r--r-- | examples/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/src/lib.rs b/examples/src/lib.rs index be4761c32..2018a3c25 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs | |||
| @@ -12,20 +12,20 @@ use {embassy_mcxa as hal, panic_probe as _}; | |||
| 12 | pub unsafe fn init_uart2_pins(_p: &hal::pac::Peripherals) { | 12 | pub unsafe fn init_uart2_pins(_p: &hal::pac::Peripherals) { |
| 13 | // NOTE: Lpuart has been updated to properly enable + reset its own clocks. | 13 | // NOTE: Lpuart has been updated to properly enable + reset its own clocks. |
| 14 | // GPIO has not. | 14 | // GPIO has not. |
| 15 | _ = clocks::enable_and_reset::<hal::peripherals::PORT2>(&clocks::NoConfig); | 15 | _ = clocks::enable_and_reset::<hal::peripherals::PORT2>(&clocks::periph_helpers::NoConfig); |
| 16 | pins::configure_uart2_pins_port2(); | 16 | pins::configure_uart2_pins_port2(); |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | /// Initialize clocks for the LED GPIO/PORT used by the blink example. | 19 | /// Initialize clocks for the LED GPIO/PORT used by the blink example. |
| 20 | pub unsafe fn init_led_gpio_clocks(_p: &hal::pac::Peripherals) { | 20 | pub unsafe fn init_led_gpio_clocks(_p: &hal::pac::Peripherals) { |
| 21 | _ = clocks::enable_and_reset::<hal::peripherals::PORT3>(&clocks::NoConfig); | 21 | _ = clocks::enable_and_reset::<hal::peripherals::PORT3>(&clocks::periph_helpers::NoConfig); |
| 22 | _ = clocks::enable_and_reset::<hal::peripherals::GPIO3>(&clocks::NoConfig); | 22 | _ = clocks::enable_and_reset::<hal::peripherals::GPIO3>(&clocks::periph_helpers::NoConfig); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | /// Initialize clocks and pin muxing for ADC. | 25 | /// Initialize clocks and pin muxing for ADC. |
| 26 | pub unsafe fn init_adc_pins(_p: &hal::pac::Peripherals) { | 26 | pub unsafe fn init_adc_pins(_p: &hal::pac::Peripherals) { |
| 27 | // NOTE: Lpuart has been updated to properly enable + reset its own clocks. | 27 | // NOTE: Lpuart has been updated to properly enable + reset its own clocks. |
| 28 | // GPIO has not. | 28 | // GPIO has not. |
| 29 | _ = clocks::enable_and_reset::<hal::peripherals::PORT1>(&clocks::NoConfig); | 29 | _ = clocks::enable_and_reset::<hal::peripherals::PORT1>(&clocks::periph_helpers::NoConfig); |
| 30 | pins::configure_adc_pins(); | 30 | pins::configure_adc_pins(); |
| 31 | } | 31 | } |
