diff options
Diffstat (limited to 'drivers/gdisp/STM32LTDC/gdisp_lld_config.h')
-rw-r--r-- | drivers/gdisp/STM32LTDC/gdisp_lld_config.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gdisp/STM32LTDC/gdisp_lld_config.h b/drivers/gdisp/STM32LTDC/gdisp_lld_config.h index 29e016ce..c661f67c 100644 --- a/drivers/gdisp/STM32LTDC/gdisp_lld_config.h +++ b/drivers/gdisp/STM32LTDC/gdisp_lld_config.h @@ -14,11 +14,25 @@ /* Driver hardware support. */ /*===========================================================================*/ +#define LTDC_USE_DMA2D TRUE #define GDISP_HARDWARE_DRAWPIXEL TRUE #define GDISP_HARDWARE_PIXELREAD TRUE #define GDISP_HARDWARE_CONTROL TRUE #define GDISP_LLD_PIXELFORMAT GDISP_PIXELFORMAT_RGB565 + +/*===========================================================================*/ +/* Don't change stuff below this line. Please. */ +/*===========================================================================*/ + +#if LTDC_USE_DMA2D + #define GDISP_HARDWARE_FILLS TRUE + #define GDISP_HARDWARE_BITFILLS TRUE +#else + #define GDISP_HARDWARE_FILLS FALSE + #define GDISP_HARDWARE_BITFILLS FALSE +#endif /* GDISP_USE_DMA2D */ + #endif /* GFX_USE_GDISP */ #endif /* _GDISP_LLD_CONFIG_H */ |