We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 CMSIS_device_HAL_header
so that it's very flexible changing the MCU.
What do you think about the suggestion?
Yes, the tool includes also the
#define CMSIS_device_header "deviceHeader.h"
string into RTE_Components.h
However, the device header is known for every CMSIS device.
In contrast, we cannot generate CMSIS_device_HAL_header macro since it is device specific.
The CMSIS standard does not require that header for a device