cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX: Feature request - "User Labels" for periphery.

stst9180
Associate III

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

1 REPLY 1
Peter BENSCH
ST Employee

This might be a good candidate for the Idea Zone, which you can also reach via Share > Ideas.

Good luck!

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.