Seems there is a name conflict between the "class LCD" (defined in LCD.hpp) and the #define LCD (in stm32wb55xx.h) when trying to build a project running touchGfx on a stm32WB55 mcu.
When building a freshly generated project using touchGfx on a stm32WB55 mcu, compiler complains about
../Drivers/CMSIS/Device/ST/STM32WBxx/Include/stm32wb55xx.h:1084:29: error: expected identifier before '(' token
1084 | #define LCD ((LCD_TypeDef *) LCD_BASE)
| ^
../TouchGFX/target/generated/TouchGFXGeneratedHAL.hpp:44:66: note: in expansion of macro 'LCD'
44 | TouchGFXGeneratedHAL(touchgfx::DMA_Interface& dma, touchgfx::LCD& display, touchgfx::TouchController& tc, uint16_t width, uint16_t height) :
| ^~~This seems to be caused by
#define LCD ((LCD_TypeDef *) LCD_BASE)in stm32wb55xx.h that doesn't really fit with the function declaration
TouchGFXGeneratedHAL(touchgfx::DMA_Interface& dma, touchgfx::LCD& display, touchgfx::TouchController& tc, uint16_t width, uint16_t height) :
touchgfx::HAL(dma, display, tc, width, height)
{
}Solution is to comment out the #define in stm32wb55xx.h ...
any other idea to fix this ?