diff options
| author | Felipe Balbi <[email protected]> | 2025-11-07 10:07:33 -0800 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2025-11-07 10:08:16 -0800 |
| commit | e75066820ad320495ca70570641c90d75247b19b (patch) | |
| tree | da2aeddb9164dbc2829b54185d1f180efbad6daf /src/clocks.rs | |
| parent | cb2ac2790f4b037056f9571abeb4d62360199426 (diff) | |
cargo +nightly fmt
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'src/clocks.rs')
| -rw-r--r-- | src/clocks.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/clocks.rs b/src/clocks.rs index 95d7ad567..65a17cef6 100644 --- a/src/clocks.rs +++ b/src/clocks.rs | |||
| @@ -76,8 +76,7 @@ pub unsafe fn enable_ostimer0(peripherals: &pac::Peripherals) { | |||
| 76 | pub unsafe fn select_uart2_clock(peripherals: &pac::Peripherals) { | 76 | pub unsafe fn select_uart2_clock(peripherals: &pac::Peripherals) { |
| 77 | // Use FRO_LF_DIV (already running) MUX=0 DIV=0 | 77 | // Use FRO_LF_DIV (already running) MUX=0 DIV=0 |
| 78 | let mrcc = &peripherals.mrcc0; | 78 | let mrcc = &peripherals.mrcc0; |
| 79 | mrcc.mrcc_lpuart2_clksel() | 79 | mrcc.mrcc_lpuart2_clksel().write(|w| w.mux().clkroot_func_0()); |
| 80 | .write(|w| w.mux().clkroot_func_0()); | ||
| 81 | mrcc.mrcc_lpuart2_clkdiv().write(|w| unsafe { w.bits(0) }); | 80 | mrcc.mrcc_lpuart2_clkdiv().write(|w| unsafe { w.bits(0) }); |
| 82 | } | 81 | } |
| 83 | 82 | ||
