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