pub fn uart<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    baud: F,
    sercom5: pac::SERCOM5,
    pm: &mut pac::PM,
    rx: gpio::Pb31<Input<Floating>>,
    tx: gpio::Pb30<Input<Floating>>,
    port: &mut Port,
) -> UART5<
    hal::sercom::Sercom5Pad1<gpio::Pb31<PfD>>,
    hal::sercom::Sercom5Pad0<gpio::Pb30<PfD>>,
    (),
    (),
> {
    let gclk0 = clocks.gclk0();

    UART5::new(
        &clocks.sercom5_core(&gclk0).unwrap(),
        baud.into(),
        sercom5,
        pm,
        (rx.into_pad(port), tx.into_pad(port)),
    )
}
/// Convenience for setting up the serial communication pins
/// operate as UART RX/TX (respectively) running at the specified baud.
Convenience for setting up the serial communication pins
operate as UART RX/TX (respectively) running at the specified baud.
Convenience for setting up the serial communication pins operate as UART RX / TX ( respectively ) running at the specified baud .
pub fn uart<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    baud: F,
    sercom5: pac::SERCOM5,
    pm: &mut pac::PM,
    rx: gpio::Pb31<Input<Floating>>,
    tx: gpio::Pb30<Input<Floating>>,
    port: &mut Port,
) -> UART5<
    hal::sercom::Sercom5Pad1<gpio::Pb31<PfD>>,
    hal::sercom::Sercom5Pad0<gpio::Pb30<PfD>>,
    (),
    (),
> {
    let gclk0 = clocks.gclk0();
    UART5::new(
        &clocks.sercom5_core(&gclk0).unwrap(),
        baud.into(),
        sercom5,
        pm,
        (rx.into_pad(port), tx.into_pad(port)),
    )
}
pub fn uart < F : Into < Hertz > > ( clocks : & mut GenericClockController , baud : F , sercom5 : pac :: SERCOM5 , pm : & mut pac :: PM , rx : gpio :: Pb31 < Input < Floating > > , tx : gpio :: Pb30 < Input < Floating > > , port : & mut Port , ) -> UART5 < hal :: sercom :: Sercom5Pad1 < gpio :: Pb31 < PfD > > , hal :: sercom :: Sercom5Pad0 < gpio :: Pb30 < PfD > > , ( ) , ( ) , > { let gclk0 = clocks . gclk0 ( ) ; UART5 :: new ( & clocks . sercom5_core ( & gclk0 ) . unwrap ( ) , baud . into ( ) , sercom5 , pm , ( rx . into_pad ( port ) , tx . into_pad ( port ) ) , ) }
Convenience for setting up the serial communication pins
operate as UART RX/TX (respectively) running at the specified baud.
Convenience for setting up the serial communication pins operate as UART RX / TX ( respectively ) running at the specified baud .
clocks
&mut GenericClockController
baud
F
sercom5
pac::SERCOM5
pm
&mut pac::PM
rx
gpio::Pb31<Input<Floating>>
tx
gpio::Pb30<Input<Floating>>
port
&mut Port
clocks
&mut GenericClockController
baud
F
sercom5
pac::SERCOM5
pm
&mut pac::PM
rx
gpio::Pb31<Input<Floating>>
tx
gpio::Pb30<Input<Floating>>
port
&mut Port