2274 #ifndef screwed things up.
[goodfet] / firmware / include / platform.h
1 //! \file platform.h
2
3 #include <signal.h>
4 #include <io.h>
5 #include <iomacros.h>
6
7
8 //Use P3 instead of P5 for target I/O on chips without P5.
9 //#ifndef P5OUT
10 //#warning "P5OUT undefined, using P3 instead."
11 //#define P5OUT P3OUT
12 //#define P5DIR P3DIR
13 //#define P5REN P3REN
14 //#define P5IN P3IN
15 //#endif
16
17 unsigned char serial_rx();
18 void serial_tx(unsigned char);
19
20 unsigned char serial1_rx();
21 void serial1_tx(unsigned char);
22
23 void setbaud(unsigned char);
24 void setbaud1(unsigned char);
25
26 //! Initialize the UART
27 void msp430_init_uart();
28 //! Initialize the DCO Clock
29 void msp430_init_dco();
30
31 //LED on P1.0
32 #define PLEDOUT P1OUT
33 #define PLEDDIR P1DIR
34 #define PLEDPIN 0x1
35