Solved
Header files STM32WB conflict with TouchGFX
I try add to pnucleo WB55 project touchgfx package and result is
../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) :
| ^~~
../Drivers/CMSIS/Device/ST/STM32WBxx/Include/stm32wb55xx.h:961:31: error: expected ')' before '(' token
961 | #define LCD_BASE (APB1PERIPH_BASE + 0x00002400UL)
| ^
../Drivers/CMSIS/Device/ST/STM32WBxx/Include/stm32wb55xx.h:1084:46: note: in expansion of macro 'LCD_BASE'
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) :
|and next more errors around defined LCD.
Primary colision is in generated files = hard to edit.
Howto solve this ?
TouchGFXGeneratedHAL(touchgfx::DMA_Interface& dma, touchgfx::LCD& display, touchgfx::TouchController& tc, uint16_t width, uint16_t height) :
touchgfx::HAL(dma, display, tc, width, height)
{
}