lcd_port.h 816 B

12345678910111213141516171819202122232425262728293031323334
  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. * 2018-07-28 liu2guang the first version for STM32F469NI-Discovery.
  9. */
  10. #ifndef __DRV_LCD_H_
  11. #define __DRV_LCD_H_
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. #include <board.h>
  15. typedef enum
  16. {
  17. ROTATION_ZERO = 0,
  18. ROTATION_090 = 90,
  19. ROTATION_180 = 180,
  20. ROTATION_270 = 270,
  21. } bsp_rotation;
  22. #define LCD_WIDTH DISPLAY_HSIZE_INPUT0
  23. #define LCD_HEIGHT DISPLAY_VSIZE_INPUT0
  24. #define LCD_BITS_PER_PIXEL DISPLAY_BITS_PER_PIXEL_INPUT1
  25. #define LCD_PIXEL_FORMAT RTGRAPHIC_PIXEL_FORMAT_RGB565
  26. #define LCD_BUF_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_BITS_PER_PIXEL / 8)
  27. #define LCD_BL_PIN BSP_IO_PORT_06_PIN_03
  28. #endif