How to change the STM32 family in a project using HAL?
Hello,
I am currently using a F4 processor in HAL together with the Stm32cubeIDE.
Thus the IDE generates F4 hal files which later are included in the main program.
To access the specific functions I need to #include "stm32f4xx_hal.h" in my own programs and libraries to make the HAL available in my programs.
When I later want to change the platform to an F7 processor I would need to change all the code to #include "stm32f7xx_hal.h". This is very inconvenient.
How can I avoid this problem?
Thanks in advance
Alexander
