Question
Detecting available UARTs at compile time
Hi,
using CubeIDE with CubeMX, is is possible to "check" or "detect", for conditional compiling, which UART ports that are enabled? In the MX-generated USART.C you will find all the handles for the available UARTs but AFAIK, you can't conditional compile on the existence of variables, only #defines. Then, in the stm32h750xx.h (H750 in my case) you can find #defines for the UART ports but that is ALL the MCU's ports, not only used ones.
Regards,
Goran
