This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Improvement to RTE_Components.h

I know that RTE_Components.h is automatically generated during the Build Process step (see https://developer.arm.com/documentation/101407/0537/Creating-Applications/Software-Components/Components-in-Project).

As an example, for STM32H7 MCU it contains the lines

/*
 * Define the Device Header File:
 */
#define CMSIS_device_header "stm32h7xx.h"

that are useful because they allow the usage of

#include "RTE_Components.h"
#include CMSIS_device_header

in the user code.

I suggest to add another define, similar to this one

#define CMSIS_device_HAL_header "stm32h7xx_hal.h"

so that the user can do

#include "RTE_Components.h"
#include CMSIS_device_header

#include CMSIS_device_HAL_header

so that it's very flexible changing the MCU.

What do you think about the suggestion?