summaryrefslogtreecommitdiff
path: root/bsp/phytium/libraries/drivers/drv_dc.h
blob: 293dd7e5bc42b4fa0835c7476720eaf8b919a0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Email: [email protected]
 *
 * Change Logs:
 * Date          Author           Notes
 * 2023-11-7     wangzongqiang     first version
 *
 */

#ifndef __DRV_DC_H__
#define __DRV_DC_H__
#include <rtdevice.h>
#include "fdcdp.h"

#ifdef __cplusplus
extern "C"
{
#endif

#define FB_XSIZE        1024
#define FB_YSIZE        768
#define DISPLAY_COLOR_DEPTH     32
#define DISPLAY_REFRESH_RATE_60 60
#define DISPLAY_REFRESH_RATE_59 59
#define DISPLAY_REFRESH_RATE_40 40
#define DISPLAY_REFRESH_RATE_30 30


int rt_hw_dc_init(void);
struct phytium_dc_bus
{
    struct rt_device parent;
    FDcDp  dc_handle;/* data */
    const char *name;
    rt_uint32_t fdc_id;
};
#ifdef __cplusplus
}
#endif

#endif /* __DRV_DC_H__ */