ser_dsp56k.h

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