pub fn uart<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    baud: F,
    sercom2: pac::SERCOM2,
    pm: &mut pac::PM,
    d0: gpio::Pa11<Input<Floating>>,
    d1: gpio::Pa10<Input<Floating>>,
    port: &mut Port,
) -> UART2<
    hal::sercom::Sercom2Pad3<gpio::Pa11<PfD>>,
    hal::sercom::Sercom2Pad2<gpio::Pa10<PfD>>,
    (),
    (),
> {
    let gclk0 = clocks.gclk0();

    UART2::new(
        &clocks.sercom2_core(&gclk0).unwrap(),
        baud.into(),
        sercom2,
        pm,
        (d0.into_pad(port), d1.into_pad(port)),
    )
}
/// Convenience for setting up the D0 and D1 pins to
/// operate as UART RX/TX (respectively) running at the specified baud.
Convenience for setting up the D0 and D1 pins to
operate as UART RX/TX (respectively) running at the specified baud.
Convenience for setting up the D0 and D1 pins to operate as UART RX / TX ( respectively ) running at the specified baud .
pub fn uart<F: Into<Hertz>>(
    clocks: &mut GenericClockController,
    baud: F,
    sercom2: pac::SERCOM2,
    pm: &mut pac::PM,
    d0: gpio::Pa11<Input<Floating>>,
    d1: gpio::Pa10<Input<Floating>>,
    port: &mut Port,
) -> UART2<
    hal::sercom::Sercom2Pad3<gpio::Pa11<PfD>>,
    hal::sercom::Sercom2Pad2<gpio::Pa10<PfD>>,
    (),
    (),
> {
    let gclk0 = clocks.gclk0();
    UART2::new(
        &clocks.sercom2_core(&gclk0).unwrap(),
        baud.into(),
        sercom2,
        pm,
        (d0.into_pad(port), d1.into_pad(port)),
    )
}
pub fn uart < F : Into < Hertz > > ( clocks : & mut GenericClockController , baud : F , sercom2 : pac :: SERCOM2 , pm : & mut pac :: PM , d0 : gpio :: Pa11 < Input < Floating > > , d1 : gpio :: Pa10 < Input < Floating > > , port : & mut Port , ) -> UART2 < hal :: sercom :: Sercom2Pad3 < gpio :: Pa11 < PfD > > , hal :: sercom :: Sercom2Pad2 < gpio :: Pa10 < PfD > > , ( ) , ( ) , > { let gclk0 = clocks . gclk0 ( ) ; UART2 :: new ( & clocks . sercom2_core ( & gclk0 ) . unwrap ( ) , baud . into ( ) , sercom2 , pm , ( d0 . into_pad ( port ) , d1 . into_pad ( port ) ) , ) }
Convenience for setting up the D0 and D1 pins to
operate as UART RX/TX (respectively) running at the specified baud.
Convenience for setting up the D0 and D1 pins to operate as UART RX / TX ( respectively ) running at the specified baud .
clocks
&mut GenericClockController
baud
F
sercom2
pac::SERCOM2
pm
&mut pac::PM
d0
gpio::Pa11<Input<Floating>>
d1
gpio::Pa10<Input<Floating>>
port
&mut Port
clocks
&mut GenericClockController
baud
F
sercom2
pac::SERCOM2
pm
&mut pac::PM
d0
gpio::Pa11<Input<Floating>>
d1
gpio::Pa10<Input<Floating>>
port
&mut Port