Skip to main content
stst9180
Associate III
Feb 14, 2022 2:02 PM UTC
Question

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

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

This topic has been closed for replies.

1 reply

Peter BENSCH
ST Technical Moderator
Feb 14, 2022 8:07 PM UTC

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.