HAL USART Overview ¶
Introducing USART ¶
- group USART_Introduction
-
-
This introduction is under development.
-
Module and files ¶
The following diagram illustrates the USART module and its associated files.
Component diagram ¶
The following diagram illustrates the software components involved in the USART module. It shows the interactions between the user application, HAL drivers, low-level drivers, and the hardware components.
Configuration table ¶
The following table lists the configuration defines for the HAL USART module, specifying their locations, default values, and descriptions:
- group USART_Configuration_Table
-
¶
Configuration inside the USART driver: ¶
Config defines
Where
Default value
Note
USE_HAL_USART_MODULE
hal_conf.h
1
Enable the HAL USART module.
USE_HAL_USART_REGISTER_CALLBACKS
hal_conf.h
0
Enable the register callbacks
USE_HAL_USART_CLK_ENABLE_MODEL
hal_conf.h
HAL_CLK_ENABLE_NO
Enable peripheral clock in the HAL_USART_Init
USE_HAL_USART_USER_DATA
hal_conf.h
0
Add an user data inside HAL USART handle
USE_HAL_USART_GET_LAST_ERRORS
hal_conf.h
0
Add error member inside HAL USART handle
USE_HAL_USART_DMA
hal_conf.h
1
Enable DMA code inside HAL USART
USE_HAL_USART_FIFO
hal_conf.h
0
Enable FIFO code inside HAL USART
USE_HAL_CHECK_PARAM
hal_conf.h
0
Enable checking of vital parameters at runtime
USE_HAL_MUTEX
hal_conf.h
0
Enable the use of semaphore in the HAL driver
USE_HAL_CHECK_PROCESS_STATE
hal_conf.h
0
Enable atomic access to process state check
USE_ASSERT_DBG_PARAM
PreProcessor env
NA
Enable the params assert
USE_ASSERT_DBG_STATE
PreProcessor env
NA
Enable the state assert