1 /* 2 * Copyright (c) 2006-2022, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2022-3-29 Wayne The first version 9 */ 10 #ifndef LV_GPU_N9H_GE2D_H 11 #define LV_GPU_N9H_GE2D_H 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 /********************* 18 * INCLUDES 19 *********************/ 20 #include "../../misc/lv_color.h" 21 #include "../../hal/lv_hal_disp.h" 22 #include "../sw/lv_draw_sw.h" 23 24 /********************* 25 * DEFINES 26 *********************/ 27 28 /********************** 29 * TYPEDEFS 30 **********************/ 31 struct _lv_disp_drv_t; 32 typedef lv_draw_sw_ctx_t lv_draw_n9h30_ge2d_ctx_t; 33 34 /********************** 35 * GLOBAL PROTOTYPES 36 **********************/ 37 38 /** 39 * Turn on the peripheral and set output color mode, this only needs to be done once 40 */ 41 void lv_draw_n9h30_ge2d_init(void); 42 43 void lv_draw_n9h30_ge2d_ctx_init(struct _lv_disp_drv_t *drv, lv_draw_ctx_t *draw_ctx); 44 45 void lv_draw_n9h30_ge2d_ctx_deinit(struct _lv_disp_drv_t *drv, lv_draw_ctx_t *draw_ctx); 46 47 void lv_draw_n9h30_ge2d_blend(lv_draw_ctx_t *draw_ctx, const lv_draw_sw_blend_dsc_t *dsc); 48 49 void lv_gpu_n9h30_ge2d_wait_cb(lv_draw_ctx_t *draw_ctx); 50 51 /********************** 52 * MACROS 53 **********************/ 54 55 #ifdef __cplusplus 56 } /*extern "C"*/ 57 #endif 58 59 #endif /*LV_GPU_N9H_GE2D_H*/ 60 61