projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apimote patch. I think this works.
[goodfet]
/
firmware
/
apps
/
radios
/
ccspi.c
diff --git
a/firmware/apps/radios/ccspi.c
b/firmware/apps/radios/ccspi.c
index
6df0458
..
54b155c
100644
(file)
--- a/
firmware/apps/radios/ccspi.c
+++ b/
firmware/apps/radios/ccspi.c
@@
-50,12
+50,14
@@
void ccspisetup(){
DIRSS;
DIRCE;
DIRSS;
DIRCE;
- P4OUT|=BIT5; //activate CC2420 voltage regulator
+
//
P4OUT|=BIT5; //activate CC2420 voltage regulator
msdelay(100);
//Reset the CC2420.
msdelay(100);
//Reset the CC2420.
- P4OUT&=~BIT6;
- P4OUT|=BIT6;
+ /*P4OUT&=~BIT6; FIXME Does the new code work on Z1 and Telosb?
+ P4OUT|=BIT6;*/
+ CLRCE;
+ SETCE;
//Begin a new transaction.
CLRSS;
//Begin a new transaction.
CLRSS;
@@
-362,8
+364,8
@@
void ccspi_handle_fn( uint8_t const app,
//TODO disable AUTOCRC here again to go back to promiscous mode
//Turn off LED 2 (green) as signal
//TODO disable AUTOCRC here again to go back to promiscous mode
//Turn off LED 2 (green) as signal
-
PLED2DIR |= PLED2PIN;
-
PLED2OUT |= PLED2PIN;
+ PLED2DIR |= PLED2PIN;
+ PLED2OUT |= PLED2PIN;
}
//TODO the firmware stops staying in this mode after a while, and stops jamming... need to find a fix.
#else
}
//TODO the firmware stops staying in this mode after a while, and stops jamming... need to find a fix.
#else