35#define __UCONCAT(a, b) #a b
36#define _UCONCAT(a, b) __UCONCAT(a, b)
37#define UCONCAT(b) _UCONCAT(__USER_LABEL_PREFIX__, b)
61#define RGB_TO_RGB565(r, g, b) ( \
62 ((r & 0x1F) << 11) | \
73#define RGB565_TO_R(rgb565) ((rgb565 >> 11) & 0x1F)
81#define RGB565_TO_G(rgb565) ((rgb565 >> 5) & 0x3F)
89#define RGB565_TO_B(rgb565) (rgb565 & 0x1F)
104extern uint16_t (*
LCD_GetPixel)(
unsigned int x,
unsigned int y);
111extern void (*
LCD_GetSize)(
unsigned int *width,
unsigned int *height);
113extern uint16_t *(*_FP_LCD_GetVRAMAddress)() __asm__ (UCONCAT(
"LCD_GetVRAMAddress"));
122static inline __attribute__((
const, always_inline)) uint16_t *LCD_GetVRAMAddress() {
123 return _FP_LCD_GetVRAMAddress();
138extern void (*
LCD_SetPixel)(
unsigned int x,
unsigned int y, uint16_t color);
140extern void (*LCD_SetPixelFromPaletteU)(
unsigned int x,
unsigned int y, uint8_t index) __asm__ (UCONCAT(
"LCD_SetPixelFromPalette"));
149static inline __attribute__((always_inline))
void LCD_SetPixelFromPalette(
unsigned int x,
unsigned int y,
enum LCD_Palette color) {
150 LCD_SetPixelFromPaletteU(x, y, (uint8_t)color);
static unsigned int enum LCD_Palette color void(* LCD_VRAMBackup)()
Definition lcd.h:160
void(* LCD_SetPixel)(unsigned int x, unsigned int y, uint16_t color)
LCD_Palette
Definition lcd.h:42
void(* LCD_VRAMRestore)()
uint16_t(* LCD_GetPixel)(unsigned int x, unsigned int y)
void(* LCD_ClearScreen)()
void(* LCD_GetSize)(unsigned int *width, unsigned int *height)