root / TL16C754_training.X / TL16C_addr.h @ d2006889
Historique | Voir | Annoter | Télécharger (878 octets)
1 | d2006889 | Enzo Niro | |
---|---|---|---|
2 | #ifndef TLE16C_ADDR_H
|
||
3 | #define TLE16C_ADDR_H
|
||
4 | |||
5 | |||
6 | #define LCR_REG 0x3 //Static register |
||
7 | |||
8 | ///////////////////////////////////////////
|
||
9 | // READ Registers
|
||
10 | |||
11 | #define RHR_REG 0x0 |
||
12 | #define IIR_REG 0x2 |
||
13 | #define LSR_REG 0x5 |
||
14 | #define MSR_REG 0x6 |
||
15 | #define FIFORDY_REG 0x7 |
||
16 | |||
17 | ///////////////////////////////////////////
|
||
18 | // WRITE Registers
|
||
19 | |||
20 | #define THR_REG 0x0 |
||
21 | #define FCR_REG 0x2 |
||
22 | |||
23 | ///////////////////////////////////////////
|
||
24 | // READ/WRITE Registers
|
||
25 | |||
26 | #define IER_REG 0x1 |
||
27 | #define LCR_REG 0x3 |
||
28 | #define MCR_REG 0x4 |
||
29 | #define SPR_REG 0x7 |
||
30 | #define DLL_REG 0x0 |
||
31 | #define DLH_REG 0x1 |
||
32 | #define EFR_REG 0x2 |
||
33 | #define XON1_REG 0x4 |
||
34 | #define XON2_REG 0x5 |
||
35 | #define XOFF1_REG 0x6 |
||
36 | #define XOFF2_REG 0x7 |
||
37 | #define TCR_REG 0x6 |
||
38 | #define TLR_REG 0x7 |
||
39 | |||
40 | |||
41 | |||
42 | #endif /* XC_HEADER_TEMPLATE_H */ |