ser_lpc2.h
Go to the documentation of this file.00001
00038 #ifndef SER_LPC2_H
00039 #define SER_LPC2_H
00040
00041 #include <cfg/cfg_debug.h>
00042 #include <io/lpc23xx.h>
00043
00044
00045 enum
00046 {
00047 SER_UART0,
00048 SER_UART1,
00049 SER_UART2,
00050 SER_UART3,
00051
00052 SER_CNT
00053 };
00054
00055
00056 #define SERRF_RXFIFOOVERRUN BV(0) //< Rx FIFO buffer overrun
00057 #define SERRF_RXTIMEOUT BV(1) //< Receive timeout
00058 #define SERRF_TXTIMEOUT BV(2) //< Transmit timeout
00059
00060
00061
00062
00063 #define SERRF_RXSROVERRUN 0 //< Input overrun
00064 #define SERRF_FRAMEERROR 0 //< Stop bit missing
00065 #define SERRF_PARITYERROR 0 //< Parity error
00066 #define SERRF_NOISEERROR 0 //< Noise error
00067
00068
00069 typedef uint32_t serstatus_t;
00070
00071 void lpc2_uartInit(int port);
00072
00073 #endif