TelosB target support.
[goodfet] / firmware / include / platform.h
1 /*! \file platform.h
2   \author Travis Goodspeed
3   \brief Port and baud rate definitions.
4   
5   The functions specified here are defined in the platform
6   definition file, such as msp430x1612.c or msp430x2618.c.
7 */
8
9 #include "gfports.h"
10
11 unsigned char serial_rx();
12 void serial_tx(unsigned char);
13
14 unsigned char serial1_rx();
15 void serial1_tx(unsigned char);
16
17 void setbaud(unsigned char);
18 void setbaud1(unsigned char);
19
20 //! Initialize the UART
21 void msp430_init_uart();
22 //! Initialize the DCO Clock
23 void msp430_init_dco();
24 //! Called by monitor() when the DCO is correct and communication established.
25 void msp430_init_dco_done();
26
27 //LED on P1.0
28 #define PLEDOUT P1OUT
29 #define PLEDDIR P1DIR
30 #define PLEDPIN BIT0
31