1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Email: opensource_embedded@phytium.com.cn 7 * 8 * Change Logs: 9 * Date Author Notes 10 * 2023-11-7 wangzongqiang first version 11 * 12 */ 13 14 #ifndef __DRV_DC_H__ 15 #define __DRV_DC_H__ 16 #include <rtdevice.h> 17 #include "fdcdp.h" 18 19 #ifdef __cplusplus 20 extern "C" 21 { 22 #endif 23 24 #define FB_XSIZE 1024 25 #define FB_YSIZE 768 26 #define DISPLAY_COLOR_DEPTH 32 27 #define DISPLAY_REFRESH_RATE_60 60 28 #define DISPLAY_REFRESH_RATE_59 59 29 #define DISPLAY_REFRESH_RATE_40 40 30 #define DISPLAY_REFRESH_RATE_30 30 31 32 33 int rt_hw_dc_init(void); 34 struct phytium_dc_bus 35 { 36 struct rt_device parent; 37 FDcDp dc_handle;/* data */ 38 const char *name; 39 rt_uint32_t fdc_id; 40 }; 41 #ifdef __cplusplus 42 } 43 #endif 44 45 #endif /* __DRV_DC_H__ */ 46