X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fchips%2Fatm128%2FAtm128Uart.h;h=084001805b60ecf6160dca98c573cebad3f93346;hp=63d49cdebd48ea50a37d6bcf25f4b12a20cb529d;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/chips/atm128/Atm128Uart.h b/tos/chips/atm128/Atm128Uart.h index 63d49cde..08400180 100644 --- a/tos/chips/atm128/Atm128Uart.h +++ b/tos/chips/atm128/Atm128Uart.h @@ -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