pub trait SerialExt<USART, ITX, IRX, TX, RX> {
    fn serial(
        self,
        pins: (ITX, IRX),
        baud_rate: Bps<u32>,
        clocks: Clocks
    ) -> Serial<USART, (TX, RX)>; }
Expand description

Serial extension for USART

Required Methods

Configures USART and consumes pair of (tx, rx) pins to act as serial port. Configures pins accordingly. Returns Serial.

Implementors