Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
Initialization and de-initialization functions
[USART Exported Functions]
Functions | |
ErrorStatus | LL_USART_DeInit (USART_TypeDef *USARTx) |
De-initialize USART registers (Registers restored to their default values). | |
ErrorStatus | LL_USART_Init (USART_TypeDef *USARTx, LL_USART_InitTypeDef *USART_InitStruct) |
Initialize USART registers according to the specified parameters in USART_InitStruct. | |
void | LL_USART_StructInit (LL_USART_InitTypeDef *USART_InitStruct) |
Set each LL_USART_InitTypeDef field to default value. | |
ErrorStatus | LL_USART_ClockInit (USART_TypeDef *USARTx, LL_USART_ClockInitTypeDef *USART_ClockInitStruct) |
Initialize USART Clock related settings according to the specified parameters in the USART_ClockInitStruct. | |
void | LL_USART_ClockStructInit (LL_USART_ClockInitTypeDef *USART_ClockInitStruct) |
Set each field of a LL_USART_ClockInitTypeDef type structure to default value. |
Function Documentation
ErrorStatus LL_USART_ClockInit | ( | USART_TypeDef * | USARTx, |
LL_USART_ClockInitTypeDef * | USART_ClockInitStruct | ||
) |
Initialize USART Clock related settings according to the specified parameters in the USART_ClockInitStruct.
- Note:
- 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.
- Parameters:
-
USARTx USART Instance USART_ClockInitStruct,: pointer to a LL_USART_ClockInitTypeDef structure that contains the Clock configuration information for the specified USART peripheral.
- Return values:
-
An ErrorStatus enumeration value: - SUCCESS: USART registers related to Clock settings are initialized according to USART_ClockInitStruct content
- ERROR: Problem occurred during USART Registers initialization
Definition at line 343 of file stm32l4xx_ll_usart.c.
void LL_USART_ClockStructInit | ( | LL_USART_ClockInitTypeDef * | USART_ClockInitStruct ) |
Set each field of a LL_USART_ClockInitTypeDef type structure to default value.
- Parameters:
-
USART_ClockInitStruct,: pointer to a LL_USART_ClockInitTypeDef structure whose fields will be set to default values.
- Return values:
-
None
Definition at line 402 of file stm32l4xx_ll_usart.c.
ErrorStatus LL_USART_DeInit | ( | USART_TypeDef * | USARTx ) |
De-initialize USART registers (Registers restored to their default values).
- Parameters:
-
USARTx USART Instance
- Return values:
-
An ErrorStatus enumeration value: - SUCCESS: USART registers are de-initialized
- ERROR: USART registers are not de-initialized
Definition at line 140 of file stm32l4xx_ll_usart.c.
ErrorStatus LL_USART_Init | ( | USART_TypeDef * | USARTx, |
LL_USART_InitTypeDef * | USART_InitStruct | ||
) |
Initialize USART registers according to the specified parameters in USART_InitStruct.
- Note:
- 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).
- Parameters:
-
USARTx USART Instance USART_InitStruct,: pointer to a LL_USART_InitTypeDef structure that contains the configuration information for the specified USART peripheral.
- Return values:
-
An ErrorStatus enumeration value: - SUCCESS: USART registers are initialized according to USART_InitStruct content
- ERROR: Problem occurred during USART Registers initialization
Definition at line 214 of file stm32l4xx_ll_usart.c.
void LL_USART_StructInit | ( | LL_USART_InitTypeDef * | USART_InitStruct ) |
Set each LL_USART_InitTypeDef field to default value.
- Parameters:
-
USART_InitStruct,: pointer to a LL_USART_InitTypeDef structure whose fields will be set to default values.
- Return values:
-
None
Definition at line 319 of file stm32l4xx_ll_usart.c.
Generated on Tue Jul 12 2022 17:38:59 by
