* Bump speed over serial to 115200 (Tmote sky only).
This commit is contained in:
parent
e9b0d2fe7c
commit
290489ac10
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)$Id: slip_uart1.c,v 1.2 2006/08/17 15:41:13 bg- Exp $
|
* @(#)$Id: slip_uart1.c,v 1.3 2006/12/01 15:07:49 bg- Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -135,10 +135,17 @@ slip_arch_init(void)
|
|||||||
|
|
||||||
UTCTL1 = SSEL1; /* UCLK = MCLK */
|
UTCTL1 = SSEL1; /* UCLK = MCLK */
|
||||||
|
|
||||||
|
#ifdef TMOTE_SKY
|
||||||
|
/* rs232_set_speed(RS232_115200); */
|
||||||
|
UBR01 = 0x15;
|
||||||
|
UBR11 = 0x00;
|
||||||
|
UMCTL1 = 0x4a;
|
||||||
|
#else
|
||||||
/* rs232_set_speed(RS232_57600); */
|
/* rs232_set_speed(RS232_57600); */
|
||||||
UBR01 = 0x2a;
|
UBR01 = 0x2a;
|
||||||
UBR11 = 0x00;
|
UBR11 = 0x00;
|
||||||
UMCTL1 = 0x5b;
|
UMCTL1 = 0x5b;
|
||||||
|
#endif
|
||||||
|
|
||||||
ME2 &= ~USPIE1; /* USART1 SPI module disable */
|
ME2 &= ~USPIE1; /* USART1 SPI module disable */
|
||||||
ME2 |= (UTXE1 | URXE1); /* Enable USART1 TXD/RXD */
|
ME2 |= (UTXE1 | URXE1); /* Enable USART1 TXD/RXD */
|
||||||
|
Loading…
Reference in New Issue
Block a user