summaryrefslogtreecommitdiff
path: root/bsp/raspberry-pi/raspi3-64/driver/drv_fb.h
blob: 1074dc79c7874533883310efc30cfc25c612c6af (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
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * 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)))
struct rt_hdmi_fb_device
{
    struct rt_device parent;

    rt_uint32_t width;
    rt_uint32_t height;
    rt_uint32_t depth;
    rt_uint32_t pitch;
    rt_uint32_t pixel_format;

    rt_uint8_t *fb;
};
#endif/* __DRV_FB_H__ */