Universal synchronous asynchronous receiver
transmitter (USART)
23.2.14.16 USART_SetPrescaler
void USART_SetPrescaler ( USART_TypeDef * USARTx,
uint8_t USART_Prescaler)
Sets the system clock prescaler.
ï‚· USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
ï‚· USART_Prescaler : specifies the prescaler clock.
ï‚· This function has to be called before calling USART_Cmd()
function.
23.2.15 RS485 mode function
23.2.15.1 USART_DECmd
void USART_DECmd ( USART_TypeDef * USARTx,
FunctionalState NewState)
Enables or disables the USART's DE functionality.
ï‚· USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
ï‚· NewState : new state of the driver enable mode. This
parameter can be: ENABLE or DISABLE.
23.2.15.2 USART_DEPolarityConfig
void USART_DEPolarityConfig ( USART_TypeDef * USARTx,
uint32_t USART_DEPolarity)