-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserial.h
30 lines (27 loc) · 796 Bytes
/
serial.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* =====================================================================================
*
* Filename: serial.h
*
* Description:
*
* Version: 1.0
* Created: 0
* Revision: none
* Compiler: gcc
*
* Author: Richard Ribier (Coder),
* Company: LittleCodeShop
*
* =====================================================================================
*/
// SIO card port 0h/1h -> ASR TTY
#define ASR33_CTRL_PORT 0x0 // status
#define ASR33_DATA_PORT 0x1
// 2SIO card port 10h/11h -> glass TTY
#define ADM3A_CTRL_PORT 0x10
#define ADM3A_DATA_PORT 0x11
// Possible values of status register
/* Tx Rx values */
#define RxStat_BIT 0x01 // Ready to receive
#define TxStat_BIT 0x02 // Ready to transmit