summaryrefslogtreecommitdiff
path: root/ucoo/arch
diff options
context:
space:
mode:
authorNicolas Schodet2016-08-03 12:55:46 +0200
committerNicolas Schodet2019-10-09 23:05:50 +0200
commitc5162d97ad6059cfea292beaf3b9a7b67ca8f982 (patch)
tree1eaed8ba3ef75cbccc74a4bdcd9a1f63e38486dd /ucoo/arch
parent12b16664f756046e29b3e4114b5b8725f74fdd81 (diff)
ucoo/hal/frame_buffer: add LTDC, DSI & DMA2D
Diffstat (limited to 'ucoo/arch')
-rw-r--r--ucoo/arch/reg.stm32f4.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ucoo/arch/reg.stm32f4.hh b/ucoo/arch/reg.stm32f4.hh
index 1f5f2cf..6cedaba 100644
--- a/ucoo/arch/reg.stm32f4.hh
+++ b/ucoo/arch/reg.stm32f4.hh
@@ -128,6 +128,11 @@
#define DESIG_FLASH_SIZE_BASE 0x1fff7a22
#define DESIG_UNIQUE_ID_BASE 0x1fff7a10
+#define DMA2D_CR_MODE_MemoryToMemory 0
+#define DMA2D_CR_MODE_MemoryToMemoryFPC DMA2D_CR_MODE_0
+#define DMA2D_CR_MODE_MemoryToMemoryBlend DMA2D_CR_MODE_1
+#define DMA2D_CR_MODE_RegisterToMemory (DMA2D_CR_MODE_1 | DMA2D_CR_MODE_0)
+
#ifdef DSI_BASE
# define DSI_VMCR_VMT_NonBurstSyncPulses 0
# define DSI_VMCR_VMT_NonBurstSyncEvents 1