LL_USART_Init() function
Initialize USART registers according to the specified parameters in USART_InitStruct.
Arguments
USARTx
USART Instance
USART_InitStruct
pointer to a LL_USART_InitTypeDef structure that contains the configuration information for the specified USART peripheral.
Return value
An ErrorStatus enumeration value: - SUCCESS: USART registers are initialized according to USART_InitStruct content - ERROR: Problem occurred during USART Registers initialization
Notes
As some bits in USART configuration registers can only be written when the USART is disabled (USART_CR1_UE bit =0), USART IP should be in disabled state prior calling this function. Otherwise, ERROR result will be returned. Baud rate value stored in USART_InitStruct BaudRate field, should be valid (different from 0).
Examples
LL_USART_Init() is referenced by
1 libraries and example projects.
Functions called by LL_USART_Init()
LL_USART_Init()
Data read by LL_USART_Init()
Data written by LL_USART_Init()
LL_USART_Init()
LL_USART_Init()::status LL_USART_Init()::periphclk all items filtered out
Type of LL_USART_Init()
LL_USART_Init()
uint32_t all items filtered out