38.3.2.7 usart_os_set_baud_rate
Set USART baud rate.
int32_t usart_os_set_baud_rate(
struct usart_os_descriptor *const descr,
const uint32_t baud_rate
)
Parameters
- descr
-
Type: struct usart_os_descriptor Struct *const
A USART descriptor which is used to communicate via USART
- baud_rate
-
Type: const uint32_t
A baud rate to set
Returns
Type: int32_t
The status of the baudrate setting.
- -1
-
Passed parameters were invalid or the interface is not initialized
- 0
-
The flow control action is set successfully