usart_os_flush_rx_buffer

flush USART ringbuf

int32_t usart_os_flush_rx_buffer(
    struct usart_os_descriptor *const descr
)

This function flush USART RX ringbuf.

Parameters

descr

Type: struct usart_os_descriptor Struct *const

The pointer to USART descriptor

Returns

Type: int32_t

ERR_NONE