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.
Figure 4: Updating existing APIs
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 */