/* Selects the USART WakeUp method form stop mode.  */
void USART_StopModeWakeUpSourceConfig(USART_TypeDef *USARTx, uint32_t USART_WakeUpSource)
/* Selects the USART WakeUp method form stop mode.  */
void USART_StopModeWakeUpSourceConfig(USART_TypeDef *USARTx, uint32_t USART_WakeUpSource)
{
    assert_param(IS_USART_123_PERIPH(USARTx));
    assert_param(IS_USART_STOPMODE_WAKEUPSOURCE(USART_WakeUpSource));
    USARTx->CR3 &= (uint32_t)~((uint32_t)USART_CR3_WUS);
    USARTx->CR3 |= USART_WakeUpSource;
}