Updating Existing Common Apis; Updating Existing Data Structures; Figure 4: Updating Existing Apis - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

Overview of HAL drivers
Case 3: Updating existing common APIs
In this case, the routines are defined with the same names in the stm32f2xx_hal_ppp_ex.c
extension file, while the generic API is defined as weak, so that the compiler will overwrite
the original routine by the new defined function.
Case 4: Updating existing data structures
The data structure for a specific device part number (e.g. PPP_InitTypeDef) can have
different fields. In this case, the data structure is defined in the extension header file and
delimited by the specific part number define statement.
Example:
#if defined (STM32F205xx)
typedef struct
{
(...)
}PPP_InitTypeDef;
#endif /* STM32F205xx */
42/1371

Figure 4: Updating existing APIs

DocID028236 Rev 2
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF