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.
Initialization and de-initialization functions
[USART Exported Functions]
Initialization and Configuration functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_USART_Init (USART_HandleTypeDef *husart) |
| Initializes the USART mode according to the specified parameters in the USART_InitTypeDef and create the associated handle. | |
| HAL_StatusTypeDef | HAL_USART_DeInit (USART_HandleTypeDef *husart) |
| DeInitializes the USART peripheral. | |
| __weak void | HAL_USART_MspInit (USART_HandleTypeDef *husart) |
| USART MSP Init. | |
| __weak void | HAL_USART_MspDeInit (USART_HandleTypeDef *husart) |
| USART MSP DeInit. | |
Detailed Description
Initialization and Configuration functions.
==============================================================================
##### Initialization and Configuration functions #####
==============================================================================
[..]
This subsection provides a set of functions allowing to initialize the USART
in asynchronous and in synchronous modes.
(+) For the asynchronous mode only these parameters can be configured:
(++) Baud Rate
(++) Word Length
(++) Stop Bit
(++) Parity
(++) USART polarity
(++) USART phase
(++) USART LastBit
(++) Receiver/transmitter modes
[..]
The HAL_USART_Init() function follows the USART synchronous configuration
procedure (details for the procedure are available in reference manuals
(RM0008 for STM32F10Xxx MCUs and RM0041 for STM32F100xx MCUs)).
Function Documentation
| HAL_StatusTypeDef HAL_USART_DeInit | ( | USART_HandleTypeDef * | husart ) |
DeInitializes the USART peripheral.
- Parameters:
-
husart,: Pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART module.
- Return values:
-
HAL status
Definition at line 290 of file stm32f1xx_hal_usart.c.
| HAL_StatusTypeDef HAL_USART_Init | ( | USART_HandleTypeDef * | husart ) |
Initializes the USART mode according to the specified parameters in the USART_InitTypeDef and create the associated handle.
- Parameters:
-
husart,: Pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART module.
- Return values:
-
HAL status
Definition at line 243 of file stm32f1xx_hal_usart.c.
| __weak void HAL_USART_MspDeInit | ( | USART_HandleTypeDef * | husart ) |
USART MSP DeInit.
- Parameters:
-
husart,: Pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART module.
- Return values:
-
None
Definition at line 339 of file stm32f1xx_hal_usart.c.
| __weak void HAL_USART_MspInit | ( | USART_HandleTypeDef * | husart ) |
USART MSP Init.
- Parameters:
-
husart,: Pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART module.
- Return values:
-
None
Definition at line 324 of file stm32f1xx_hal_usart.c.
Generated on Tue Jul 12 2022 15:37:32 by
1.7.2