2022-02-14 06:02 AM
When creating a project with several different hardwares I like the posibility that the CubeMX created definitions for the GPIOs in the main.h header file which can be used in the project and by just changing the project-file one can use a totally different hardware. I would like to see this also for the peripheral handles (like hadc, hspi, ..).
Currently I manually add those defines to the adc.h/spi.h/.. manually like:
#define DISPLAY_SPI hspi1
Instead of adding a further define a "user defined" handle name would also be an option.
Regards Pascal
2022-02-14 12:07 PM
This might be a good candidate for the Idea Zone, which you can also reach via Share > Ideas.
Good luck!
Regards
/Peter