BeRTOS
|
00001 00039 #include <cfg/macros.h> /* BV() */ 00040 #include <cfg/compiler.h> /* uint32_t */ 00041 00042 typedef uint16_t serstatus_t; 00043 00044 /* Software errors */ 00045 #define SERRF_RXFIFOOVERRUN BV(0) 00046 #define SERRF_RXTIMEOUT BV(1) 00047 #define SERRF_TXTIMEOUT BV(2) 00049 /* 00050 * Hardware errors. 00051 * These flags map directly to the SCI Control Register. 00052 */ 00053 #define SERRF_PARITYERROR BV(8) 00054 #define SERRF_FRAMEERROR BV(9) 00055 #define SERRF_NOISEERROR BV(10) 00056 #define SERRF_RXSROVERRUN BV(11) 00063 enum 00064 { 00065 // \todo since we now support "fake" multiplexed serials, this should be moved to hw.h 00066 SER_UART0, 00067 SER_PUNTALI, 00068 SER_BARCODE, 00069 SER_CNT 00070 }; 00071 /*\}*/