8 #if !defined UI_DRAWING_DMA2D_H
9 #define UI_DRAWING_DMA2D_H
29 #include <LLUI_DISPLAY_impl.h>
31 #include "ui_drawing.h"
35 #include "stm32f4xx_hal.h"
39 #include "stm32f7xx_hal.h"
43 #include "stm32h7xx_hal.h"
50 #if !defined(LLUI_GC_SUPPORTED_FORMATS) || (LLUI_GC_SUPPORTED_FORMATS <= 1)
58 #define UI_DRAWING_DMA2D_fillRectangle UI_DRAWING_fillRectangle
59 #define UI_DRAWING_DMA2D_drawImage UI_DRAWING_drawImage
60 #define UI_DRAWING_DMA2D_copyImage UI_DRAWING_copyImage
61 #define UI_DRAWING_DMA2D_drawRegion UI_DRAWING_drawRegion
71 #define UI_DRAWING_DMA2D_fillRectangle UI_DRAWING_fillRectangle_0
72 #define UI_DRAWING_DMA2D_drawImage UI_DRAWING_drawImage_0
73 #define UI_DRAWING_DMA2D_copyImage UI_DRAWING_copyImage_0
74 #define UI_DRAWING_DMA2D_drawRegion UI_DRAWING_drawRegion_0
89 uint8_t* dest_address;
104 void UI_DRAWING_DMA2D_initialize(
void* binary_semaphore_handle);
112 void UI_DRAWING_DMA2D_IRQHandler(
void);
126 void UI_DRAWING_DMA2D_configure_memcpy(uint8_t* srcAddr, uint8_t* destAddr, uint32_t xmin, uint32_t ymin, uint32_t xmax, uint32_t ymax, uint32_t stride,
DRAWING_DMA2D_memcpy* memcpy_data);
143 void UI_DRAWING_DMA2D_memcpy_callback(
bool from_isr);
153 DRAWING_Status UI_DRAWING_DMA2D_fillRectangle(MICROUI_GraphicsContext* gc, jint x1, jint y1, jint x2, jint y2);
158 DRAWING_Status UI_DRAWING_DMA2D_drawImage(MICROUI_GraphicsContext* gc, MICROUI_Image* img, jint regionX, jint regionY, jint width, jint height, jint x, jint y, jint alpha);
163 DRAWING_Status UI_DRAWING_DMA2D_copyImage(MICROUI_GraphicsContext* gc, MICROUI_Image* img, jint regionX, jint regionY, jint width, jint height, jint x, jint y);
168 DRAWING_Status UI_DRAWING_DMA2D_drawRegion(MICROUI_GraphicsContext* gc, jint regionX, jint regionY, jint width, jint height, jint x, jint y, jint alpha);
This file provides the configuration of ui_drawing_dma2d.c.