FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_app/r2d/lcds/BW_D_Sample/r2d_task_init_i.c @ 453:96c047b4325e
R2D D-Sample drivers: only do the actual hw pokes when CONFIG_TARGET_DSAMPLE
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 15 Mar 2018 05:48:03 +0000 |
parents | 945cf7f506b2 |
children |
comparison
equal
deleted
inserted
replaced
452:4d7c2ccb5814 | 453:96c047b4325e |
---|---|
9 | 9 |
10 | 10 |
11 #define R2D_MB_PRIM_SIZE (4000) | 11 #define R2D_MB_PRIM_SIZE (4000) |
12 | 12 |
13 | 13 |
14 #ifdef CONFIG_TARGET_DSAMPLE | |
14 const unsigned char INIT_DISCTL[11] = { 0xDE,0x01,0x64,0x00,0x1B,0xF4,0x00,0xDC,0x00,0x02,0x00}; | 15 const unsigned char INIT_DISCTL[11] = { 0xDE,0x01,0x64,0x00,0x1B,0xF4,0x00,0xDC,0x00,0x02,0x00}; |
15 | 16 |
16 const unsigned char INIT_GCP64[126] = { | 17 const unsigned char INIT_GCP64[126] = { |
17 0x15,0x00,0x29,0x00,0x3E,0x00,0x51,0x00, 0x65,0x00,0x7A,0x00,0x8D,0x00,0XA1,0x00, | 18 0x15,0x00,0x29,0x00,0x3E,0x00,0x51,0x00, 0x65,0x00,0x7A,0x00,0x8D,0x00,0XA1,0x00, |
18 0XB6,0x00,0XC7,0x00,0XD8,0x00,0XEB,0x00, 0XFB,0x00,0x0B,0x01,0X1B,0x01,0X27,0x01, | 19 0XB6,0x00,0XC7,0x00,0XD8,0x00,0XEB,0x00, 0XFB,0x00,0x0B,0x01,0X1B,0x01,0X27,0x01, |
37 static void r2d_nop_delay(UINT32 ms) | 38 static void r2d_nop_delay(UINT32 ms) |
38 { | 39 { |
39 unsigned short a; | 40 unsigned short a; |
40 while (ms-- > 0) for (a=0;a<1000;a++) asm(" nop"); | 41 while (ms-- > 0) for (a=0;a<1000;a++) asm(" nop"); |
41 } | 42 } |
43 #endif | |
42 | 44 |
43 void r2d_refresh_task_init(void) | 45 void r2d_refresh_task_init(void) |
44 { | 46 { |
45 | 47 |
46 #ifndef _WINDOWS | 48 #ifdef CONFIG_TARGET_DSAMPLE |
47 | 49 |
48 UINT32 i; | 50 UINT32 i; |
49 | 51 |
50 LCD_activate; | 52 LCD_activate; |
51 | 53 |