pub fn uart<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    baud: F,
    sercom0: pac::SERCOM0,
    pm: &mut pac::PM,
    d2: gpio::Pa5<Input<Floating>>,
    d0: gpio::Pa4<Input<Floating>>,
    port: &mut Port,
) -> UART0<hal::sercom::Sercom0Pad1<gpio::Pa5<PfD>>, hal::sercom::Sercom0Pad0<gpio::Pa4<PfD>>, (), ()>
{
    let gclk0 = clocks.gclk0();

    UART0::new(
        &clocks.sercom0_core(&gclk0).unwrap(),
        baud.into(),
        sercom0,
        pm,
        (d2.into_pad(port), d0.into_pad(port)),
    )
}
/// Convenience for setting up the D2 and D0 pins to
/// operate as UART RX/TX (respectively) running at the specified baud.
Convenience for setting up the D2 and D0 pins to
operate as UART RX/TX (respectively) running at the specified baud.
Convenience for setting up the D2 and D0 pins to operate as UART RX / TX ( respectively ) running at the specified baud .
pub fn uart<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    baud: F,
    sercom0: pac::SERCOM0,
    pm: &mut pac::PM,
    d2: gpio::Pa5<Input<Floating>>,
    d0: gpio::Pa4<Input<Floating>>,
    port: &mut Port,
) -> UART0<hal::sercom::Sercom0Pad1<gpio::Pa5<PfD>>, hal::sercom::Sercom0Pad0<gpio::Pa4<PfD>>, (), ()>
{
    let gclk0 = clocks.gclk0();
    UART0::new(
        &clocks.sercom0_core(&gclk0).unwrap(),
        baud.into(),
        sercom0,
        pm,
        (d2.into_pad(port), d0.into_pad(port)),
    )
}
pub fn uart < F : Into < Hertz > > ( clocks : & mut GenericClockController , baud : F , sercom0 : pac :: SERCOM0 , pm : & mut pac :: PM , d2 : gpio :: Pa5 < Input < Floating > > , d0 : gpio :: Pa4 < Input < Floating > > , port : & mut Port , ) -> UART0 < hal :: sercom :: Sercom0Pad1 < gpio :: Pa5 < PfD > > , hal :: sercom :: Sercom0Pad0 < gpio :: Pa4 < PfD > > , ( ) , ( ) > { let gclk0 = clocks . gclk0 ( ) ; UART0 :: new ( & clocks . sercom0_core ( & gclk0 ) . unwrap ( ) , baud . into ( ) , sercom0 , pm , ( d2 . into_pad ( port ) , d0 . into_pad ( port ) ) , ) }
Convenience for setting up the D2 and D0 pins to
operate as UART RX/TX (respectively) running at the specified baud.
Convenience for setting up the D2 and D0 pins to operate as UART RX / TX ( respectively ) running at the specified baud .
clocks
&mut GenericClockController
baud
F
sercom0
pac::SERCOM0
pm
&mut pac::PM
d2
gpio::Pa5<Input<Floating>>
d0
gpio::Pa4<Input<Floating>>
port
&mut Port
clocks
&mut GenericClockController
baud
F
sercom0
pac::SERCOM0
pm
&mut pac::PM
d2
gpio::Pa5<Input<Floating>>
d0
gpio::Pa4<Input<Floating>>
port
&mut Port