pub fn uart<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    baud: F,
    sercom5: pac::SERCOM5,
    pm: &mut pac::PM,
    rx: UartRx,
    tx: UartTx,
) -> Uart {
    let gclk0 = clocks.gclk0();
    let clock = &clocks.sercom5_core(&gclk0).unwrap();
    UART5::new(clock, baud.into(), sercom5, pm, (rx, tx))
}
/// Convenience for setting up the labelled RX, TX pins to
/// operate as a UART device running at the specified baud.
Convenience for setting up the labelled RX, TX pins to
operate as a UART device running at the specified baud.
Convenience for setting up the labelled RX TX pins to operate as a UART device running at the specified baud .
pub fn uart<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    baud: F,
    sercom5: pac::SERCOM5,
    pm: &mut pac::PM,
    rx: UartRx,
    tx: UartTx,
) -> Uart {
    let gclk0 = clocks.gclk0();
    let clock = &clocks.sercom5_core(&gclk0).unwrap();
    UART5::new(clock, baud.into(), sercom5, pm, (rx, tx))
}
pub fn uart < F : Into < Hertz > > ( clocks : & mut GenericClockController , baud : F , sercom5 : pac :: SERCOM5 , pm : & mut pac :: PM , rx : UartRx , tx : UartTx , ) -> Uart { let gclk0 = clocks . gclk0 ( ) ; let clock = & clocks . sercom5_core ( & gclk0 ) . unwrap ( ) ; UART5 :: new ( clock , baud . into ( ) , sercom5 , pm , ( rx , tx ) ) }
Convenience for setting up the labelled RX, TX pins to
operate as a UART device running at the specified baud.
Convenience for setting up the labelled RX TX pins to operate as a UART device running at the specified baud .
clocks
&mut GenericClockController
baud
F
sercom5
pac::SERCOM5
pm
&mut pac::PM
rx
UartRx
tx
UartTx
clocks
&mut GenericClockController
baud
F
sercom5
pac::SERCOM5
pm
&mut pac::PM
rx
UartRx
tx
UartTx