/* Enables or disables the USART's DMA interface when reception error occurs.  */
void USART_DMAReceptionErrorConfig(USART_TypeDef *USARTx, uint32_t USART_DMAOnError)
/* Enables or disables the USART's DMA interface when reception error occurs.  */
void USART_DMAReceptionErrorConfig(USART_TypeDef *USARTx, uint32_t USART_DMAOnError)
{
  assert_param(IS_USART_1234_PERIPH(USARTx));
  assert_param(IS_USART_DMAONERROR(USART_DMAOnError));
  USARTx->CR3 &= (uint32_t)~((uint32_t)USART_CR3_DDRE);
  USARTx->CR3 |= USART_DMAOnError;
}