drv_lcd.h 720 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-04-12 RT-Thread the first version
  9. */
  10. #ifndef __DRV_LCD_H__
  11. #define __DRV_LCD_H__
  12. #include <stdint.h>
  13. #define REVERSE_X (1<<0)
  14. #define REVERSE_Y (1<<1)
  15. #define REVERSE_MODE (1<<2)
  16. int rt_hw_lcd_init(void);
  17. #define FBIOGET_FSCREENINFO 0x4602
  18. struct fb_fix_screeninfo
  19. {
  20. char id[16];
  21. unsigned long smem_start;
  22. uint32_t smem_len;
  23. uint32_t line_length;
  24. };
  25. rt_uint8_t get_lcd_backlight(void);
  26. void set_lcd_backlight(rt_uint8_t value);
  27. void turn_down_lcd_backlight(void);
  28. void turn_on_lcd_backlight(void);
  29. #endif