X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fplatforms%2Ftelosb.h;h=59495ebc818e9ac03b2b941cb8b44f74ed93003c;hp=8b137891791fe96927ad78e64b0aad7bded08bdc;hb=e9fb7dbba0d1abc23d14559e566da903331f1e8a;hpb=3ca6e2dc2aa0d4706fdcfc6a390c8f3f6419251d diff --git a/firmware/platforms/telosb.h b/firmware/platforms/telosb.h index 8b13789..59495eb 100644 --- a/firmware/platforms/telosb.h +++ b/firmware/platforms/telosb.h @@ -1 +1,31 @@ +/*! \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. +*/ + +#ifdef MSP430 +#include +#endif + + +//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