EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #36 background imageLoading...
Page #36 background image
Overview of HAL drivers
UM1940
36/1371
DocID028236 Rev 2
IP/Module
STM32F205xx
STM32F215xx
STM32F207xx
STM32F217xx
stm32f2xx_ll_rng.c
Yes
Yes
Yes
Yes
stm32f2xx_ll_rtc.c
Yes
Yes
Yes
Yes
stm32f2xx_ll_spi.c
Yes
Yes
Yes
Yes
stm32f2xx_ll_tim.c
Yes
Yes
Yes
Yes
stm32f2xx_ll_usart.c
Yes
Yes
Yes
Yes
stm32f2xx_ll_utils.c
Yes
Yes
Yes
Yes
2.5 HAL driver rules
2.5.1 HAL API naming rules
The following naming rules are used in HAL drivers:
Table 6: HAL API naming rules
Generic
Family specific
Device specific
File
names
stm32f2xx_hal_ppp (c/h)
stm32f2xx_hal_ppp_ex (c/h)
stm32f2xx_ hal_ppp_ex (c/h)
Module
name
HAL_PPP_ MODULE
Function
name
HAL_PPP_Function
HAL_PPP_FeatureFunctio
n_MODE
HAL_PPPEx_Function
HAL_PPPEx_FeatureFunction_
MODE
HAL_PPPEx_Function
HAL_PPPEx_FeatureFunction_
MODE
Handle
name
PPP_HandleTypedef
NA
NA
Init
structure
name
PPP_InitTypeDef
NA
PPP_InitTypeDef
Enum
name
HAL_PPP_Structname
TypeDef
NA
NA
The PPP prefix refers to the peripheral functional mode and not to the peripheral itself.
For example, if the USART, PPP can be USART, IRDA, UART or SMARTCARD
depending on the peripheral mode.
The constants used in one file are defined within this file. A constant used in several
files is defined in a header file. All constants are written in uppercase, except for
peripheral driver function parameters.
typedef variable names should be suffixed with _TypeDef.
Registers are considered as constants. In most cases, their name is in uppercase and
uses the same acronyms as in thestm32f2xx reference manuals.
Peripheral registers are declared in the PPP_TypeDef structure (e.g. ADC_TypeDef)
in stm32f2xxx.h header file.stm32f2xxx.h corresponds to stm32f205xx.h ,
stm32f215.h, stm32f207xx.h or stm32f217xx.h.
Peripheral function names are prefixed by HAL_, then the corresponding peripheral
acronym in uppercase followed by an underscore. The first letter of each word is in
uppercase (e.g. HAL_UART_Transmit()). Only one underscore is allowed in a function
name to separate the peripheral acronym from the rest of the function name.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F2 and is the answer not in the manual?

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals