comparison src/cs/drivers/drv_app/r2d/lcds/luna/r2d_task_init_i.c @ 45:c905daaff834

implemented 96x64 BW framebuffer config, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 17 Oct 2020 21:30:59 +0000
parents 4e78acac3d88
children
comparison
equal deleted inserted replaced
44:1821e301a65b 45:c905daaff834
1 #include "r2d/lcds/luna/r2d_luna_lcd.h" 1 #include "r2d/lcds/luna/r2d_luna_lcd.h"
2 #include "r2d/lcds/luna/colormap.h"
2 3
3 #define R2D_MB_PRIM_SIZE (4000) 4 #define R2D_MB_PRIM_SIZE (4000)
5
6 #if (R2D_EMBEDDED_LCD == R2D_FB_96x64_BW)
7 #define INIT_FILL_COLOR LCD16_COLOR_BORDER
8 #else
9 #define INIT_FILL_COLOR LCD16_COLOR_WHITE
10 #endif
4 11
5 static void r2d_refresh_task_init(void) 12 static void r2d_refresh_task_init(void)
6 { 13 {
7 /* reset pulse */ 14 /* reset pulse */
8 CNTL_RST_REG |= EXT_RESET; 15 CNTL_RST_REG |= EXT_RESET;
57 /* initial hw framebuffer clearing */ 64 /* initial hw framebuffer clearing */
58 LCD_REG_WR(0x20, 0); 65 LCD_REG_WR(0x20, 0);
59 LCD_REG_WR(0x21, 0); 66 LCD_REG_WR(0x21, 0);
60 LCD_IR = 0x22; 67 LCD_IR = 0x22;
61 for (i = 0; i < 176*220; i++) 68 for (i = 0; i < 176*220; i++)
62 LCD_DR = 0xFFFF; /* white color */ 69 LCD_DR = INIT_FILL_COLOR;
63 } 70 }
64 71
65 static void r2d_refresh_task_kill(void) 72 static void r2d_refresh_task_kill(void)
66 { 73 {
67 } 74 }