Skip to main content
stst9180
Associate III
February 14, 2022
Question

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

  • February 14, 2022
  • 1 reply
  • 800 views

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
February 14, 2022

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.