6 #define wait_vblank() \
8 while(REG_DISPSTAT & DISPSTAT_VBLANK); \
9 while(!(REG_DISPSTAT & DISPSTAT_VBLANK)); \
14 REG_DISPCNT = DISPCNT_BG2 | DISPCNT_OBJ | 4 | ((x) << 4); \
18 #define set_bg_color(idx, r, g, b) \
20 ((uint16_t*)CRAM_BG_ADDR)[idx] = (uint16_t)(r) | ((uint16_t)(g) << 5) | ((uint16_t)(b) << 10); \
23 int iwram_brk(void *addr);
24 void *iwram_sbrk(intptr_t delta);
26 void fillblock_16byte(void *dest, uint32_t val, int count);