STM32CubeIDE device type variable availability
Hi,
I'm writing some generic utilities for use across multiple projects and processor types.
Quite often I have to include the device header file in the utility header, e.g.
//#include "stm32f1xx_hal.h"
//#include "stm32l4xx_hal.h"
#include "stm32f7xx_hal.h"
Is there a compiler variable that specifies what the processor is? Then I could do something like the below for each of the processor types.
#ifdef stm32f7xx
#include "stm32f7xx_hal.h"
#endif
#ifdef stm32f1xx
#include "stm32f1xx_hal.h"
#endif
#ifdef stm32f4xx
#include "stm32f4xx_hal.h"
#endif
Thanks.
