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.
33 //TelosB uses second serial port.
34 #define serial_tx serial1_tx
35 #define serial_rx serial1_rx
36 #define setbaud setbaud1
37 #define msp430_init_uart msp430_init_uart1
39 //Other targets use first.
40 #define serial_tx serial0_tx
41 #define serial_rx serial0_rx
42 #define setbaud setbaud0
43 #define msp430_init_uart msp430_init_uart0
46 unsigned char serial0_rx();
47 void serial0_tx(unsigned char);
49 unsigned char serial1_rx();
50 void serial1_tx(unsigned char);
52 void setbaud0(unsigned char);
53 void setbaud1(unsigned char);
55 //! Initialize the UART
56 void msp430_init_uart0();
57 //! Initialize the UART
58 void msp430_init_uart1();
60 //! Initialize the DCO Clock
61 void msp430_init_dco();
62 //! Called by monitor() when the DCO is correct and communication established.
63 void msp430_init_dco_done();