pub unsafe extern "C" fn uart_init(
uart: *mut uart_inst_t,
baudrate: uint,
) -> uint
Expand description
\brief Initialise a UART \ingroup hardware_uart
Put the UART into a known state, and enable it. Must be called before other functions.
\note There is no guarantee that the baudrate requested will be possible, the nearest will be chosen, and this function will return the configured baud rate.
\param uart UART instance. \ref uart0 or \ref uart1 \param baudrate Baudrate of UART in Hz \return Actual set baudrate