ser_at91.h
Go to the documentation of this file.00001
00040 #ifndef SER_AT91_H
00041 #define SER_AT91_H
00042
00043 #include <cfg/macros.h>
00044 #include <cfg/compiler.h>
00045 #include <cpu/detect.h>
00046
00048
00049 typedef uint32_t serstatus_t;
00050
00051
00052 #define SERRF_RXFIFOOVERRUN BV(0)
00053 #define SERRF_RXTIMEOUT BV(1)
00054 #define SERRF_TXTIMEOUT BV(2)
00056
00057
00058
00059
00060 #define SERRF_RXSROVERRUN BV(5)
00061 #define SERRF_FRAMEERROR BV(6)
00062 #define SERRF_PARITYERROR BV(7)
00063 #define SERRF_NOISEERROR 0
00064
00065
00071 enum
00072 {
00073 SER_UART0,
00074 SER_UART1,
00075 SER_SPI0,
00076 #if CPU_ARM_SAM7X
00077 SER_SPI1,
00078 #endif
00079 SER_CNT
00080 };
00081
00082
00083 #endif