comparison src/cs/drivers/drv_app/r2d/lcds/D_Sample/r2d_tfd_lcd.h @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4e78acac3d88
1 #ifndef _R2D_DSAMPLE_CMDS_H_
2 #define _R2D_DSAMPLE_CMDS_H_
3
4 #define LCD_cmd(c) *(volatile unsigned short*) 0x2400004 = (c)
5 #define LCD_data(c) *(volatile unsigned short*) 0x2400006 = (c)
6 #define LCD_activate *(volatile unsigned short*) 0x2400004 = 0xA6
7 #define LCD_deactivate *(volatile unsigned short*) 0x2400000 = 0xA6
8
9
10 #define LCD_DISON 0xAF
11 #define LCD_DISOFF 0xAE
12 #define LCD_DISNOR 0xA6
13 #define LCD_DISINV 0xA7
14 #define LCD_DISCTL 0xCA
15 #define LCD_GCP64 0xCB
16 #define LCD_GCP16 0xCC
17 #define LCD_GSSET 0xCD
18 #define LCD_SLPIN 0x95
19 #define LCD_SLPOUT 0x94
20 #define LCD_SD_PSET 0x75
21 #define LCD_MD_PSET 0x76
22 #define LCD_SD_CSET 0x15
23 #define LCD_MD_CSET 0x16
24 #define LCD_DATCTL 0xBC
25 #define LCD_RAMWR 0x5C
26 #define LCD_RAMRD 0x5D
27 #define LCD_PTLIN 0xA8
28 #define LCD_PTLOUT 0xA9
29 #define LCD_ASCSET 0xAA
30 #define LCD_SCSTART 0xAB
31 #define LCD_VOLCTL 0xC6
32 #define LCD_NOP 0x25
33 #define LCD_OSCISEL 0x7
34 #define LCD_3500KSET 0xD1
35 #define LCD_3500KEND 0xD2
36 #define LCD_14MSET 0xD3
37 #define LCD_14MEND 0xD4
38
39
40
41 #define INIT_3500KSET 0x45
42 #define INIT_14MSET 0x4B
43 #define INIT_DATCTL 0x28 /* 5.6.5 bits for D-Sample */
44
45 #define INIT_OSCISEL 0x05
46 #define INIT_VOLCTL 77 /* Nominel "volume" */
47 #define INIT_VOLCTL_Ton 0x98 /* Activate power-IC timer */
48 #define INIT_GSSET 0x00
49
50 extern const unsigned char INIT_DISCTL[11];
51 extern const unsigned char INIT_GCP64[126];
52 extern const unsigned char INIT_GCP16[15];
53 extern const unsigned char INIT_MD_PSET[4];
54 extern const unsigned char INIT_MD_CSET[4] ;
55
56 extern const unsigned char INIT_SD_PSET[4];
57 extern const unsigned char INIT_SD_CSET[4];
58
59 extern const unsigned char INIT_ASCSET[7];
60 extern const unsigned char INIT_SCSTART[2];
61 #endif