comparison src/cs/drivers/drv_app/r2d/uwire.h @ 0:945cf7f506b2

src/cs: chipsetsw import from tcs211-fcmodem binary blobs and LCD demo files have been excluded, all line endings are LF only
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 22:50:11 +0000
parents
children b8fc86826624
comparison
equal deleted inserted replaced
-1:000000000000 0:945cf7f506b2
1 /**
2
3 @file: uwire.h
4
5 @author Davide Carpegna
6
7 @version 1.0
8
9 Purpose: Driver for the uwire HD module
10
11 */
12
13 /*
14
15 Date Modification
16 ------------------------------------
17 09/22/2000 Create
18 10/18/2001 Updated for R2D by Christophe Favergeon
19
20
21 (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved
22 */
23
24 #ifndef _UWIRE_H_
25 #define _UWIRE_H_
26
27 #define MEM_UWIRE 0xFFFE4000
28 #define TDR (MEM_UWIRE)
29 #define RDR (MEM_UWIRE)
30 #define CSR (MEM_UWIRE+0x02)
31 #define SR1 (MEM_UWIRE+0x04)
32 #define SR2 (MEM_UWIRE+0x06)
33 #define SR3 (MEM_UWIRE+0x08)
34
35 #define INDEX_CS1 (1 << 10)
36 #define NB_BITS_WR_8 (1 << 8 )
37 #define CS_CMD (1 << 12)
38 #define START (1 << 13)
39 #define CS1_EDGE_RD (1 << 6)
40 #define CS1_FRQ_FINT_4 (1 << 9)
41 #define SR3_CLK_EN 1
42
43 #define CSRB ( 1<<14 )
44
45 #define IO_SEL0 0xFFFEF008
46 #define IO_SEL 0xFFFEF00A
47
48 #define GPIO_INOUT 0xFFFE4804
49 #define GPIO_OUT 0xFFFE4802
50 #define CNTL_RST 0xFFFFFD04
51
52 #ifdef _WINDOWS
53 #ifdef __cplusplus
54 extern "C"
55 {
56 #endif
57 #endif
58
59 // prototypes of uwire functions for lcd
60 BOOLEAN lcd_polling(void);
61 void lcd_transmit_cmd(UINT8 cmd);
62 void uwire_init_lcd(void);
63
64 // Defined only for board
65 void lcd_transmit_data(UINT8 data);
66
67 // Defined only for PC
68 void lcd_refresh(void);
69 void lcd_set_pos(unsigned char x,unsigned char y);
70 void* lcd_get_dc(void);
71
72 #ifdef _WINDOWS
73 #ifdef __cplusplus
74 }
75 #endif
76 #endif
77
78 #endif /*_UWIRE_H_*/