Chipcon SPI driver, in the works.
[goodfet] / firmware / platforms / telosb.h
index 8b13789..c536b1c 100644 (file)
@@ -1 +1,27 @@
+/*! \file telosb.h
+  \author Travis Goodspeed
+  \brief Port descriptions for the TelosB platform.
+  
+  This file defines the Telos B hardware, so that the GoodFET firmware
+  may be loaded onto it.  Adjustments include the !CS line of the CC2420
+  radio, the choice of serial port, and the LEDs.
 
+*/
+
+
+//LED on P1.0
+#define PLEDOUT P5OUT
+#define PLEDDIR P5DIR
+#define PLEDPIN BIT4
+
+
+//Radio CS is P4.2
+#define SETSS P4OUT|=BIT2
+#define CLRSS P4OUT&=~BIT2
+#define DIRSS P4DIR|=BIT2;
+
+
+//CC2420 Chip Reset.  Need to document this.
+#define SETCE P4OUT|=BIT6
+#define CLRCE P4OUT&=~BIT6
+#define DIRCE P4DIR|=BIT6