rt-thread/bsp/raspberry-pi/raspi3-64/driver/drv_fb.h

27 lines
537 B
C
Raw Normal View History

2020-01-10 10:38:21 +08:00
/*
2021-03-14 12:58:10 +08:00
* Copyright (c) 2006-2021, RT-Thread Development Team
2020-01-10 10:38:21 +08:00
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2019-08-29 zdzn first version
*/
#ifndef __DRV_FB_H__
#define __DRV_FB_H__
#define RGB(r, g, b) ((((r))<<16) | (((g))<<8) | ((b)))
2020-03-02 20:38:47 +08:00
struct rt_hdmi_fb_device
2020-01-10 10:38:21 +08:00
{
2020-03-02 20:38:47 +08:00
struct rt_device parent;
2020-01-10 10:38:21 +08:00
rt_uint32_t width;
rt_uint32_t height;
rt_uint32_t depth;
2020-03-02 20:38:47 +08:00
rt_uint32_t pitch;
rt_uint32_t pixel_format;
2020-01-10 10:38:21 +08:00
2020-03-02 20:38:47 +08:00
rt_uint8_t *fb;
2020-01-10 10:38:21 +08:00
};
#endif/* __DRV_FB_H__ */