From: R. Steve McKown Date: Tue, 14 Sep 2010 23:46:56 +0000 (-0600) Subject: Add 19200 baud definition when using 1MHz (10^6 Hz) SMCLK. X-Git-Tag: release/2.1.1-4.4~10 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=7c7bb5adbe3800637b9cea2aa6b3ff23c67c9337 Add 19200 baud definition when using 1MHz (10^6 Hz) SMCLK. And change baud parameter names using 1E6MHZ to use 1E6HZ. The clock is not running at 1 GHz... --- diff --git a/tos/chips/msp430/usci/Msp430Usci.h b/tos/chips/msp430/usci/Msp430Usci.h index 88e4c901..31ba96ae 100644 --- a/tos/chips/msp430/usci/Msp430Usci.h +++ b/tos/chips/msp430/usci/Msp430Usci.h @@ -101,8 +101,9 @@ typedef enum { UBRX_1MHZ_19200=54, UMCTL_1MHZ_19200=(0 << 4) + (5 << 1) + 0, UBRX_1MHZ_38400=27, UMCTL_1MHZ_38400=(0 << 4) + (2 << 1) + 0, UBRX_1MHZ_115200=9, UMCTL_1MHZ_115200=(0 << 4) + (1 << 1) + 0, - UBRX_1E6MHZ_9600=104, UMCTL_1E6MHZ_9600=(0 << 4) + (1 << 1) + 0, - UBRX_1E6MHZ_115200=8, UMCTL_1E6MHZ_115200=(0 << 4) + (6 << 1) + 0, + UBRX_1E6HZ_9600=104, UMCTL_1E6HZ_9600=(0 << 4) + (1 << 1) + 0, + UBRX_1E6HZ_19200=52, UMCTL_1E6HZ_19200=(0 << 4) + (0 << 1) + 0, + UBRX_1E6HZ_115200=8, UMCTL_1E6HZ_115200=(0 << 4) + (6 << 1) + 0, } msp430_usci_uart_rate_t; typedef struct {