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.
19 //TelosB uses second serial port.
20 #define serial_tx serial1_tx
21 #define serial_rx serial1_rx
22 #define setbaud setbaud1
23 #define msp430_init_uart msp430_init_uart1
25 //Other targets use first.
26 #define serial_tx serial0_tx
27 #define serial_rx serial0_rx
28 #define setbaud setbaud0
29 #define msp430_init_uart msp430_init_uart0
32 unsigned char serial0_rx();
33 void serial0_tx(unsigned char);
35 unsigned char serial1_rx();
36 void serial1_tx(unsigned char);
38 void setbaud0(unsigned char);
39 void setbaud1(unsigned char);
41 //! Initialize the UART
42 void msp430_init_uart0();
43 //! Initialize the UART
44 void msp430_init_uart1();
46 //! Initialize the DCO Clock
47 void msp430_init_dco();
48 //! Called by monitor() when the DCO is correct and communication established.
49 void msp430_init_dco_done();