X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fplatforms%2Ftelosb.h;h=59495ebc818e9ac03b2b941cb8b44f74ed93003c;hp=a4821253b6eee10fee9b935410e9f16b085c213d;hb=65c39b80a197663ed494ea6887159b0efe7116a1;hpb=ba4e9392ba615ed84d47576fe973057f89bb8998 diff --git a/firmware/platforms/telosb.h b/firmware/platforms/telosb.h index a482125..59495eb 100644 --- a/firmware/platforms/telosb.h +++ b/firmware/platforms/telosb.h @@ -8,6 +8,10 @@ */ +#ifdef MSP430 +#include +#endif + //LED on P1.0 #define PLEDOUT P5OUT @@ -18,4 +22,10 @@ //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