drv_fb.h 537 B

1234567891011121314151617181920212223242526
  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. #define RGB(r, g, b) ((((r))<<16) | (((g))<<8) | ((b)))
  13. struct rt_hdmi_fb_device
  14. {
  15. struct rt_device parent;
  16. rt_uint32_t width;
  17. rt_uint32_t height;
  18. rt_uint32_t depth;
  19. rt_uint32_t pitch;
  20. rt_uint32_t pixel_format;
  21. rt_uint8_t *fb;
  22. };
  23. #endif/* __DRV_FB_H__ */