/* Enables or disables the receiver Time Out feature.  */
void USART_ReceiverTimeOutCmd(USART_TypeDef *USARTx, FunctionalState NewState)
/* Enables or disables the receiver Time Out feature.  */
void USART_ReceiverTimeOutCmd(USART_TypeDef *USARTx, FunctionalState NewState)
{
  assert_param(IS_USART_1_PERIPH(USARTx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    USARTx->CR2 |= USART_CR2_RTOEN;
  }
  else
  {
    USARTx->CR2 &= (uint32_t)~((uint32_t)USART_CR2_RTOEN);
  }
}