Project

General

Profile

Statistics
| Revision:

root / proj / include / uart_macros.h @ 245

History | View | Annotate | Download (496 Bytes)

1 235 up20180642
#ifndef UART_MACROS_H_INCLUDED
2
#define UART_MACROS_H_INCLUDED
3
4
#define UART_BITRATE        115200
5
6
#define COM1_ADDR           0x3F8
7
#define COM2_ADDR           0x2F8
8
#define COM1_IRQ            4
9
#define COM2_IRQ            3
10
#define COM1_VECTOR         0x0C
11
#define COM2_VECTOR         0x0B
12
13
typedef enum {
14
    uart_parity_none = 0x0,
15
    uart_parity_odd  = 0x1,
16
    uart_parity_even = 0x3,
17
    uart_parity_par1 = 0x5,
18
    uart_parity_par0 = 0x7
19
} uart_parity;
20
21
#endif //UART_MACROS_H_INCLUDED