When setting up the GPIO on my STM32 Processor I want to check and make sure two different GPIOs are on the same port.
So, I added this macro:
#if (USART2_TX_GPIO_Port != USART2_RX_GPIO_Port)
#error "USART TX and RX on different ports!!!"
#endif
It won't compile, this is the error:
../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7a3xxq.h:2419:45: error: operator '*' has no right operand
2419 | #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
No idea what the issue is.
Anyone have an idea?