/**
* @brief enable or disable the usart's rs485 mode.
* @param usart_x: select the usart or the uart peripheral.
* this parameter can be one of the following values:
* USART1, USART2, USART3
* @param new_state: new state of the irda mode.
* this parameter can be: TRUE or FALSE.
* @retval none
*/
void usart_rs485_mode_enable(usart_type* usart_x, confirm_state new_state)
{
usart_x->ctrl3_bit.rs485en = new_state;
} |