2 \author Travis Goodspeed
3 \brief Port and baud rate definitions.
5 The functions specified here are defined in the platform
6 definition file, such as msp430x1612.c or msp430x2618.c.
12 //TelosB uses second serial port.
13 #define serial_tx serial1_tx
14 #define serial_rx serial1_rx
15 #define setbaud setbaud1
16 #define msp430_init_uart msp430_init_uart1
18 //Other targets use first.
19 #define serial_tx serial0_tx
20 #define serial_rx serial0_rx
21 #define setbaud setbaud0
22 #define msp430_init_uart msp430_init_uart0
25 unsigned char serial0_rx();
26 void serial0_tx(unsigned char);
28 unsigned char serial1_rx();
29 void serial1_tx(unsigned char);
31 void setbaud0(unsigned char);
32 void setbaud1(unsigned char);
34 //! Initialize the UART
35 void msp430_init_uart0();
36 //! Initialize the UART
37 void msp430_init_uart1();
39 //! Initialize the DCO Clock
40 void msp430_init_dco();
41 //! Called by monitor() when the DCO is correct and communication established.
42 void msp430_init_dco_done();