aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/STM32LTDC/stm32_dma2d.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/stm32_dma2d.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/stm32_dma2d.h')
-rw-r--r--drivers/gdisp/STM32LTDC/stm32_dma2d.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gdisp/STM32LTDC/stm32_dma2d.h b/drivers/gdisp/STM32LTDC/stm32_dma2d.h
new file mode 100644
index 00000000..d3374d05
--- /dev/null
+++ b/drivers/gdisp/STM32LTDC/stm32_dma2d.h
@@ -0,0 +1,18 @@
+#ifndef _STM32_DMA2D_H
+#define _STM32_DMA2D_H
+
+#define OPFCCR_ARGB8888 0x00
+#define OPFCCR_RGB888 0x01
+#define OPFCCR_RGB565 0x02
+#define OPFCCR_ARGB1555 0x03
+#define OPFCCR_ARGB4444 0x04
+
+#define FGPFCCR_CM_RGB888 0x01
+#define FGPFCCR_CM_RGB565 0x02
+
+#define DMA2D_CR_MODE_R2M ((uint32_t)0x00030000) /* Register-to-memory mode */
+#define DMA2D_CR_MODE_M2M ((uint32_t)0x00000000) /* Register-to-memory mode */
+
+static void dma2d_init(void);
+
+#endif /* _STM32_DMA2D_H */