lcd.h 842 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __LCD_H__
  2. #define __LCD_H__
  3. #include <inttypes.h>
  4. #include "lcd-info.h"
  5. #if defined(CONFIG_COLOR_DEPTH16)
  6. typedef uint16_t pixel_t;
  7. #elif defined(CONFIG_COLOR_DEPTH24)
  8. typedef uint32_t pixel_t;
  9. #else
  10. #error "Unsupported COLOR_DEPTH!"
  11. typedef int pixel_t;
  12. #endif
  13. extern void drv_lcd_flip(void);
  14. extern pixel_t *drv_lcd_get_fb(void);
  15. extern pixel_t *drv_lcd_get_bg(void);
  16. extern void drv_lcd_get_param(int *width, int *height, int *bpp);
  17. extern void drv_lcd_fill_bg(void);
  18. extern void drv_lcd_draw_bg(void);
  19. extern void drv_lcd_draw_rect(int x, int w, int y, int h, int r, int g, int b);
  20. extern void drv_lcd_erase_rect(int x, int w, int y, int h);
  21. extern void draw_blk(int x, int y, int sz, int border, int r, int g, int b);
  22. extern int drv_lcd_init(void);
  23. extern void draw_font(int x, int y, int ascii);
  24. #endif /* __LCD_H__ */