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
}
};
+typedef uint8_t uart_speed_t;
+typedef uint8_t uart_parity_t;
+typedef uint8_t uart_duplex_t;
+
+enum {
+ TOS_UART_1200 = 0,
+ TOS_UART_1800 = 1,
+ TOS_UART_2400 = 2,
+ TOS_UART_4800 = 3,
+ TOS_UART_9600 = 4,
+ TOS_UART_19200 = 5,
+ TOS_UART_38400 = 6,
+ TOS_UART_57600 = 7,
+ TOS_UART_76800 = 8,
+ TOS_UART_115200 = 9,
+ TOS_UART_230400 = 10
+};
+
+enum {
+ TOS_UART_OFF,
+ TOS_UART_RONLY,
+ TOS_UART_TONLY,
+ TOS_UART_DUPLEX
+};
+
+enum {
+ TOS_UART_PARITY_NONE,
+ TOS_UART_PARITY_EVEN,
+ TOS_UART_PARITY_ODD
+};
#endif//_H_Msp430Usart_h
* only be called when both the receive and transmit paths
* are disabled, either through a power control interface
* or setDuplexMode. Valid parity settings are
- * TOS_PARITY_NONE, TOS_PARITY_EVEN, and TOS_PARITY_ODD.
+ * TOS_UART_PARITY_NONE, TOS_UART_PARITY_EVEN,
+ * and TOS_UART_PARITY_ODD.
*
* @param parity The parity mode to change to.
*/