diff options
Diffstat (limited to 'boards/base/STM32F469i-Discovery/CubeHAL/board_STM32LTDC.h')
-rw-r--r-- | boards/base/STM32F469i-Discovery/CubeHAL/board_STM32LTDC.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/boards/base/STM32F469i-Discovery/CubeHAL/board_STM32LTDC.h b/boards/base/STM32F469i-Discovery/CubeHAL/board_STM32LTDC.h index 87f70603..661038d3 100644 --- a/boards/base/STM32F469i-Discovery/CubeHAL/board_STM32LTDC.h +++ b/boards/base/STM32F469i-Discovery/CubeHAL/board_STM32LTDC.h @@ -9,9 +9,11 @@ #define _GDISP_LLD_BOARD_H /* Avoid naming collisions with CubeHAL. */ -#undef Red -#undef Green -#undef Blue +#if GFX_COMPAT_V2 && GFX_COMPAT_OLDCOLORS + #undef Red + #undef Green + #undef Blue +#endif /* HAL drivers needed for configuration. */ #include "stm32f4xx_hal.h" |