aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/STM32LTDC/gdisp_lld_config.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-07-12 01:43:23 +0200
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-07-12 01:43:23 +0200
commit83bd8c21a35a14eef0c059dd8b730aa13e8eb99d (patch)
treeeeeb2a43cb5b417e67cceb76fadb2ae2af2830aa /drivers/gdisp/STM32LTDC/gdisp_lld_config.h
parent64752ab52c61f053c0690cf36c712f4662bccfb1 (diff)
downloaduGFX-83bd8c21a35a14eef0c059dd8b730aa13e8eb99d.tar.gz
uGFX-83bd8c21a35a14eef0c059dd8b730aa13e8eb99d.tar.bz2
uGFX-83bd8c21a35a14eef0c059dd8b730aa13e8eb99d.zip
Adding DMA2D support to STM32LTDC driver
Diffstat (limited to 'drivers/gdisp/STM32LTDC/gdisp_lld_config.h')
-rw-r--r--drivers/gdisp/STM32LTDC/gdisp_lld_config.h14
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 */