Function stm32l0x1_hal::serial::usart2::rs232
source · pub fn rs232<TX, RX>(
usart: USART2,
pins: (TX, RX),
baud_rate: Bps,
clk_src: USARTClkSource,
clk_ctx: &ClockContext,
apb: &mut APB1,
ccipr: &mut CCIPR
) -> Serial<USART2, (TX, RX)>where
TX: TxPin<USART2>,
RX: RxPin<USART2>,
Expand description
Initialize the USART peripheral to provide RS232 8N1 asynchronous serial communication with an oversampling rate of 16.