fix FS#8187 - charging breaks sleep timer. Now if the timer goes off and the player...
[Rockbox.git] / apps / plugins / rockboy / lcd-gb.h
blob36b971a88b9d59257d41105a0d3ccb3c865192f6
3 #ifndef __LCD_GB_H__
4 #define __LCD_GB_H__
6 #include "defs.h"
8 struct vissprite
10 byte *buf;
11 int x;
12 byte pal, pri;
15 struct scan
17 int bg[64];
18 int wnd[64];
19 #if LCD_DEPTH == 1
20 byte buf[8][256];
21 #elif LCD_DEPTH == 2
22 byte buf[4][256];
23 #elif LCD_DEPTH > 4
24 byte buf[256];
25 #endif
26 un16 pal[64];
27 byte pri[256];
28 struct vissprite vs[16];
29 int ns, l, x, y, s, t, u, v, wx, wy, wt, wv;
32 struct obj
34 byte y;
35 byte x;
36 byte pat;
37 byte flags;
40 struct lcd
42 byte vbank[2][8192];
43 union
45 byte mem[256];
46 struct obj obj[40];
47 } oam;
48 byte pal[128];
51 extern struct lcd lcd;
52 extern struct scan scan;
54 void lcd_begin(void) ICODE_ATTR;
55 void lcd_refreshline(void) ICODE_ATTR;
56 void pal_write(int i, byte b) ICODE_ATTR;
57 void pal_write_dmg(int i, int mapnum, byte d) ICODE_ATTR;
58 void vram_write(addr a, byte b) ICODE_ATTR;
59 void vram_dirty(void) ICODE_ATTR;
60 void pal_dirty(void) ICODE_ATTR;
61 void lcd_reset(void);
63 #endif