1 /*
2  * Copyright (c) 2006-2021, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author         Notes
8  * 2019-08-29     zdzn           first version
9  */
10 #ifndef __DRV_FB_H__
11 #define __DRV_FB_H__
12 
13 #define RGB(r, g, b) ((((r))<<16) | (((g))<<8) | ((b)))
14 struct rt_hdmi_fb_device
15 {
16     struct rt_device parent;
17 
18     rt_uint32_t width;
19     rt_uint32_t height;
20     rt_uint32_t depth;
21     rt_uint32_t pitch;
22     rt_uint32_t pixel_format;
23 
24     rt_uint8_t *fb;
25 };
26 #endif/* __DRV_FB_H__ */
27