Universal synchronous asynchronous receiver
transmitter (USART)
The receiver set up time should be managed by software. The IrDA physical layer
specification specifies a minimum of 10 ms delay between transmission and
reception (IrDA is a half duplex protocol).
In IrDA mode, the following bits must be kept cleared:
ï‚· LINEN, STOP and CLKEN bits in the USART_CR2 register.
ï‚· SCEN and HDSEL bits in the USART_CR3 register.
ï‚· USART_IrDAConfig()
ï‚· USART_IrDACmd()
23.2.14 Initialization and Configuration functions
23.2.14.1 USART_DeInit
void USART_DeInit ( USART_TypeDef * USARTx)
Deinitializes the USARTx peripheral registers to their default reset
values.
ï‚· USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
23.2.14.2 USART_Init
void USART_Init ( USART_TypeDef * USARTx,
USART_InitTypeDef * USART_InitStruct)
Initializes the USARTx peripheral according to the specified
parameters in the USART_InitStruct .
ï‚· USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
ï‚· USART_InitStruct : pointer to a USART_InitTypeDef
structure that contains the configuration information for the
specified USART peripheral.