pub fn uart<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    baud: F,
    sercom0: pac::SERCOM0,
    pm: &mut pac::PM,
    d0: gpio::Pa11<Input<Floating>>,
    d1: gpio::Pa10<Input<Floating>>,
    port: &mut Port,
) -> UART0<
    hal::sercom::Sercom0Pad3<gpio::Pa11<PfC>>,
    hal::sercom::Sercom0Pad2<gpio::Pa10<PfC>>,
    (),
    (),
> {
    let gclk0 = clocks.gclk0();

    UART0::new(
        &clocks.sercom0_core(&gclk0).unwrap(),
        baud.into(),
        sercom0,
        pm,
        (d0.into_pad(port), d1.into_pad(port)),
    )
}
/// 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,
    sercom0: pac::SERCOM0,
    pm: &mut pac::PM,
    d0: gpio::Pa11<Input<Floating>>,
    d1: gpio::Pa10<Input<Floating>>,
    port: &mut Port,
) -> UART0<
    hal::sercom::Sercom0Pad3<gpio::Pa11<PfC>>,
    hal::sercom::Sercom0Pad2<gpio::Pa10<PfC>>,
    (),
    (),
> {
    let gclk0 = clocks.gclk0();
    UART0::new(
        &clocks.sercom0_core(&gclk0).unwrap(),
        baud.into(),
        sercom0,
        pm,
        (d0.into_pad(port), d1.into_pad(port)),
    )
}
pub fn uart < F : Into < Hertz > > ( clocks : & mut GenericClockController , baud : F , sercom0 : pac :: SERCOM0 , pm : & mut pac :: PM , d0 : gpio :: Pa11 < Input < Floating > > , d1 : gpio :: Pa10 < Input < Floating > > , port : & mut Port , ) -> UART0 < hal :: sercom :: Sercom0Pad3 < gpio :: Pa11 < PfC > > , hal :: sercom :: Sercom0Pad2 < gpio :: Pa10 < PfC > > , ( ) , ( ) , > { let gclk0 = clocks . gclk0 ( ) ; UART0 :: new ( & clocks . sercom0_core ( & gclk0 ) . unwrap ( ) , baud . into ( ) , sercom0 , pm , ( d0 . into_pad ( port ) , d1 . into_pad ( port ) ) , ) }
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
sercom0
pac::SERCOM0
pm
&mut pac::PM
d0
gpio::Pa11<Input<Floating>>
d1
gpio::Pa10<Input<Floating>>
port
&mut Port
clocks
&mut GenericClockController
baud
F
sercom0
pac::SERCOM0
pm
&mut pac::PM
d0
gpio::Pa11<Input<Floating>>
d1
gpio::Pa10<Input<Floating>>
port
&mut Port