]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/atm128/Atm128Uart.h
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / tos / chips / atm128 / Atm128Uart.h
index 63d49cdebd48ea50a37d6bcf25f4b12a20cb529d..084001805b60ecf6160dca98c573cebad3f93346 100644 (file)
@@ -127,6 +127,28 @@ typedef uint8_t Atm128_UBRR0H_t;  //!< UART 0 Baud Register (High)
 typedef uint8_t Atm128_UBRR1L_t;  //!< UART 1 Baud Register (Low)
 typedef uint8_t Atm128_UBRR1H_t;  //!< UART 1 Baud Register (High)
 
+typedef uint8_t uart_parity_t;
+typedef uint8_t uart_speed_t;
+typedef uint8_t uart_duplex_t;
+
+enum {
+  TOS_UART_PARITY_NONE = 0,
+  TOS_UART_PARITY_EVEN = 1,
+  TOS_UART_PARITY_ODD  = 2,
+};
+
+enum {
+  TOS_UART_19200  = 0,
+  TOS_UART_38400  = 1,
+  TOS_UART_57600  = 2,
+};
+
+enum {
+  TOS_UART_OFF    = 0,
+  TOS_UART_RONLY  = 1,
+  TOS_UART_TONLY  = 2,
+  TOS_UART_DUPLEX = 3,
+};
 
 #endif //_H_Atm128UART_h