blob: fa679e82c3ac1febe57259df710f5bacf99eafb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use crate::{clocks, pac, pins};
/// Initialize clocks and pin muxing for UART2 debug console.
pub unsafe fn init_uart2(p: &pac::Peripherals) {
clocks::ensure_frolf_running(p);
clocks::enable_uart2_port2(p);
pins::configure_uart2_pins_port2();
clocks::select_uart2_clock(p);
}
/// Initialize clocks for the LED GPIO/PORT used by the blink example.
pub unsafe fn init_led(p: &pac::Peripherals) {
clocks::enable_led_port(p);
}
|