Int_lcd.h 1.0 KB

1234567891011121314151617181920212223242526272829
  1. #ifndef __INT_LCD_H
  2. #define __INT_LCD_H
  3. #include "main.h"
  4. #define INT_LCD_WIDTH 800 /* 屏幕宽度 */
  5. #define INT_LCD_HEIGHT 480 /* 屏幕高度 */
  6. #define INT_LCD_FRAME_BUF_ADDR ((uint32_t)(0xC0000000)) /* 帧缓冲地址(SDRAM 起始) */
  7. #define INT_LCD_FRAME_BUF_SIZE (INT_LCD_WIDTH * INT_LCD_HEIGHT * 2) /* 单帧缓冲字节数 768KB */
  8. #define INT_LCD_FRAME_BUF_ADDR2 (INT_LCD_FRAME_BUF_ADDR + INT_LCD_FRAME_BUF_SIZE) /* 第二帧缓冲 0xC00C0000 */
  9. /* RGB565 颜色定义 */
  10. #define LCD_COLOR_WHITE 0xFFFF
  11. #define LCD_COLOR_BLACK 0x0000
  12. #define LCD_COLOR_RED 0xF800
  13. #define LCD_COLOR_GREEN 0x07E0
  14. #define LCD_COLOR_BLUE 0x001F
  15. #define LCD_COLOR_YELLOW 0xFFE0
  16. #define LCD_COLOR_CYAN 0x07FF
  17. #define LCD_COLOR_MAGENTA 0xF81F
  18. void Int_lcd_init(void);
  19. void Int_lcd_clear(uint16_t color);
  20. void Int_lcd_draw_point(uint16_t x, uint16_t y, uint16_t color);
  21. void Int_lcd_power_on(void);
  22. void Int_lcd_bl_on(void);
  23. void Int_lcd_bl_off(void);
  24. #endif