STM32LTDC: Enable DMA cache flushing on H7 platforms

This commit is contained in:
Joel Bodenmann 2021-08-17 12:32:12 +02:00
parent b1b264b6a1
commit a9cf2bdfe2

View File

@ -23,6 +23,9 @@
#undef GDISP_SCREEN_HEIGHT #undef GDISP_SCREEN_HEIGHT
#endif #endif
#ifndef LTDC_USE_DOUBLE_BUFFERING
#define LTDC_USE_DOUBLE_BUFFERING GFXOFF
#endif
#ifndef LTDC_USE_DMA2D #ifndef LTDC_USE_DMA2D
#define LTDC_USE_DMA2D GFXOFF #define LTDC_USE_DMA2D GFXOFF
#endif #endif
@ -38,7 +41,7 @@
#if LTDC_USE_DMA2D #if LTDC_USE_DMA2D
#include "stm32_dma2d.h" #include "stm32_dma2d.h"
#if defined(STM32F7) || defined(STM32F746xx) #if defined(STM32F7) || defined(STM32H7) || defined(STM32F746xx)
#undef LTDC_DMA_CACHE_FLUSH #undef LTDC_DMA_CACHE_FLUSH
#define LTDC_DMA_CACHE_FLUSH GFXON #define LTDC_DMA_CACHE_FLUSH GFXON
#endif #endif