still working...
[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
25 //LED on P1.0
26 #define PLEDOUT P1OUT
27 #define PLEDDIR P1DIR
28 #define PLEDPIN 0x1
29