00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __uart_h
00009 #define __uart_h
00010
00011 #include <system/config.h>
00012
00013 __BEGIN_SYS
00014
00015 class UART_Common
00016 {
00017 protected:
00018 UART_Common() {}
00019
00020 public:
00021 enum Baud_Rate {
00022 B1200 = 1200,
00023 B2400 = 2400,
00024 B4800 = 4800,
00025 B9600 = 9600,
00026 B19200 = 19200,
00027 B28800 = 28800,
00028 B33600 = 33600,
00029 B57600 = 57600,
00030 B115200 = 115200
00031 };
00032 enum Data_Bits {
00033 D5 = 5,
00034 D6 = 6,
00035 D7 = 7,
00036 D8 = 8
00037 };
00038 enum Parity {
00039 NO_PARITY = 0,
00040 EVEN_PARITY = 1,
00041 ODD_PARITY = 2
00042 };
00043 enum Stop_Bits {
00044 ONE_STOP_BIT = 1,
00045 ONE_HALF_STOP_BITS = 2,
00046 TWO_STPO_BITS = 3
00047 };
00048 };
00049
00050 __END_SYS
00051
00052 #include __HEADER_MACH(uart)
00053
00054 #endif