UartSetBaudRate()

Sets the baud rate of the specified UART. The UART will be configured to use the highest supported baud rate that is less than or equal to the specified baud rate.

Syntax


UartSetBaudRate(unsigned char channel, unsigned long baudRate, unsigned long* actualBaud);

channel
The UART channel to configure.

baudRate
The desired baud rate.

actualBaud
A pointer to an unsigned long that will be set to the actual baud rate used.

Returns


int status