projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added program verification routine to dsPIC33F/PIC24H client.
[goodfet]
/
firmware
/
include
/
platform.h
diff --git
a/firmware/include/platform.h
b/firmware/include/platform.h
index
b5e1fa8
..
526c877
100644
(file)
--- a/
firmware/include/platform.h
+++ b/
firmware/include/platform.h
@@
-1,18
+1,12
@@
-//! \file platform.h
+/*! \file platform.h
+ \author Travis Goodspeed
+ \brief Port and baud rate definitions.
+
+ The functions specified here are defined in the platform
+ definition file, such as msp430x1612.c or msp430x2618.c.
+*/
-#include <signal.h>
-#include <io.h>
-#include <iomacros.h>
-
-
-//Use P3 instead of P5 for target I/O on chips without P5.
-#ifdef __msp430x22x4
-#warning "2274, using P3 instead. Will break 2618 and 1612 support."
-#define P5OUT P3OUT
-#define P5DIR P3DIR
-#define P5REN P3REN
-#define P5IN P3IN
-#endif
+#include "gfports.h"
unsigned char serial_rx();
void serial_tx(unsigned char);
unsigned char serial_rx();
void serial_tx(unsigned char);
@@
-31,5
+25,5
@@
void msp430_init_dco();
//LED on P1.0
#define PLEDOUT P1OUT
#define PLEDDIR P1DIR
//LED on P1.0
#define PLEDOUT P1OUT
#define PLEDDIR P1DIR
-#define PLEDPIN
0x1
+#define PLEDPIN
BIT0