1 /**
2  * @file lv_gpu_d2_ra6m3.h
3  *
4  */
5 #ifndef LV_GPU_D2_RA6M3_H
6 #define LV_GPU_D2_RA6M3_H
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 /*********************
13  *      INCLUDES
14  *********************/
15 #include "../../misc/lv_color.h"
16 
17 #if LV_USE_GPU_RA6M3_G2D
18 #include "../../core/lv_disp.h"
19 #include "../sw/lv_draw_sw.h"
20 
21 /**********************
22  *      DEFINE
23  **********************/
24 #define MIN(A, B) ((A) < (B) ? (A) : (B))
25 #define MAX(A, B) ((A) > (B) ? (A) : (B))
26 #define M_PI    3.1415926
27 
28 /**********************
29  *      TYPEDEFS
30  **********************/
31 typedef lv_draw_sw_ctx_t lv_draw_ra6m3_dma2d_ctx_t;
32 
33 /**********************
34  * GLOBAL PROTOTYPES
35  **********************/
36 void lv_draw_ra6m3_g2d_init(void);
37 
38 void lv_port_gpu_init(void);
39 
40 void lv_port_gpu_flush(void);
41 
42 void lv_port_gpu_blit(int32_t x, int32_t y, lv_color_t * dst, const lv_area_t * fill_area);
43 
44 void lv_draw_ra6m3_2d_blend(lv_draw_ctx_t * draw_ctx, const lv_draw_sw_blend_dsc_t * dsc);
45 
46 void lv_draw_ra6m3_2d_ctx_init(lv_disp_drv_t * drv, lv_draw_ctx_t * draw_ctx);
47 
48 void lv_draw_ra6m3_2d_ctx_deinit(lv_disp_drv_t * disp, lv_draw_ctx_t * draw_ctx);
49 
50 #endif  /*LV_USE_GPU_GD32_IPA*/
51 
52 #ifdef __cplusplus
53 } /*extern "C"*/
54 #endif
55 
56 #endif
57