aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJames Munns <[email protected]>2025-11-17 15:02:26 +0100
committerJames Munns <[email protected]>2025-11-17 15:02:26 +0100
commita0c8e2d0299f3ae8eb24cd264d2b8e87f2bce464 (patch)
tree063cd0e6fe0a7b06c86d175addc54f5712e3a0d1 /examples
parenta8ca36cdbe06e83019279e441ac386a448c12edb (diff)
Restore examples
Diffstat (limited to 'examples')
-rw-r--r--examples/src/lib.rs8
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 _};
12pub unsafe fn init_uart2_pins(_p: &hal::pac::Peripherals) { 12pub 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.
20pub unsafe fn init_led_gpio_clocks(_p: &hal::pac::Peripherals) { 20pub 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.
26pub unsafe fn init_adc_pins(_p: &hal::pac::Peripherals) { 26pub 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}