Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

Initialization and de-initialization functions

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:
HALstatus

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:
HALstatus

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.