pub fn init(
        self,
        clocks: &mut GenericClockController,
        freq: impl Into<Hertz>,
        sercom0: pac::SERCOM0,
        pm: &mut pac::PM,
    ) -> UART0<UartRx, UartTx, (), ()> {
        let gclk0 = clocks.gclk0();
        let clock = &clocks.sercom0_core(&gclk0).unwrap();
        UART0::new(
            clock,
            freq.into(),
            sercom0,
            pm,
            (self.rx.into(), self.tx.into()),
        )
    }
/// Convenience function for creating a UART on the TX/RX pins.
Convenience function for creating a UART on the TX/RX pins.
Convenience function for creating a UART on the TX / RX pins .
pub fn init(
        self,
        clocks: &mut GenericClockController,
        freq: impl Into<Hertz>,
        sercom0: pac::SERCOM0,
        pm: &mut pac::PM,
    ) -> UART0<UartRx, UartTx, (), ()> {
        let gclk0 = clocks.gclk0();
        let clock = &clocks.sercom0_core(&gclk0).unwrap();
        UART0::new(
            clock,
            freq.into(),
            sercom0,
            pm,
            (self.rx.into(), self.tx.into()),
        )
    }
pub fn init ( self , clocks : & mut GenericClockController , freq : impl Into < Hertz > , sercom0 : pac :: SERCOM0 , pm : & mut pac :: PM , ) -> UART0 < UartRx , UartTx , ( ) , ( ) > { let gclk0 = clocks . gclk0 ( ) ; let clock = & clocks . sercom0_core ( & gclk0 ) . unwrap ( ) ; UART0 :: new ( clock , freq . into ( ) , sercom0 , pm , ( self . rx . into ( ) , self . tx . into ( ) ) , ) }
Convenience function for creating a UART on the TX/RX pins.
Convenience function for creating a UART on the TX / RX pins .
self
clocks
&mut GenericClockController
freq
impl Into<Hertz>
sercom0
pac::SERCOM0
pm
&mut pac::PM
self
clocks
&mut GenericClockController
freq
impl Into<Hertz>
sercom0
pac::SERCOM0
pm
&mut pac::PM