ï‚· USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
ï‚· USART_FLAG : specifies the flag to clear. This parameter
can be any combination of the following values:
ï€ USART_FLAG_WUF : Wake up flag.
ï€ USART_FLAG_CMF : Character match flag.
ï€ USART_FLAG_EOBF : End of block flag.
ï€ USART_FLAG_RTOF : Receive time out flag.
ï€ USART_FLAG_CTS : CTS Change flag.
ï€ USART_FLAG_LBD : LIN Break detection flag.
ï€ USART_FLAG_TC : Transmission Complete flag.
ï€ USART_FLAG_IDLE : IDLE line detected flag.
ï€ USART_FLAG_ORE : OverRun Error flag.
ï€ USART_FLAG_NE : Noise Error flag.
ï€ USART_FLAG_FE : Framing Error flag.
ï€ USART_FLAG_PE : Parity Errorflag.
ï‚· RXNE pending bit is cleared by a read to the USART_RDR
register (USART_ReceiveData()) or by writing 1 to the
RXFRQ in the register USART_RQR
(USART_RequestCmd()).TC flag can be also cleared by
software sequence: a read operation to USART_SR register
(USART_GetFlagStatus()) followed by a write operation to
USART_TDR register (USART_SendData()).TXE flag is
cleared by a write to the USART_TDR register
(USART_SendData()) or by writing 1 to the TXFRQ in the
register USART_RQR (USART_RequestCmd()).SBKF flag is
cleared by 1 to the SBKRQ in the register USART_RQR
(USART_RequestCmd()).