X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fplatforms%2Ftelosb.h;h=f91aa5514180a7c9af24bdf60fdd955499ddb5fa;hp=26da46b1b70736d47b059a83b17a231ee658f25f;hb=e027df82b3f7b6c0ed428a504220e13ae02886e9;hpb=cec457aef4a1e0ff483012bc3ba0ef73ac7b6659;ds=sidebyside diff --git a/firmware/platforms/telosb.h b/firmware/platforms/telosb.h index 26da46b..f91aa55 100644 --- a/firmware/platforms/telosb.h +++ b/firmware/platforms/telosb.h @@ -45,15 +45,20 @@ P6OUT = 0x00; //Radio CS is P4.2 -//#define SETSS P4OUT|=BIT2 -//#define CLRSS P4OUT&=~BIT2 -//#define DIRSS P4DIR|=BIT2 +#define SETSS P4OUT|=BIT2 +#define CLRSS P4OUT&=~BIT2 +#define DIRSS P4DIR|=BIT2 -//Flash CS is P4.4 + +//Flash CS is P4.4, redefine only for the SPI app. +#ifdef SPIAPPLICATION +#undef SETSS +#undef CLRSS +#undef DIRSS #define SETSS P4OUT|=BIT4 #define CLRSS P4OUT&=~BIT4 #define DIRSS P4DIR|=BIT4 - +#endif //CC2420 Chip Enable #define SETCE P4OUT|=BIT6