projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reception working in reflexframe.c.
[goodfet]
/
shellcode
/
chipcon
/
cc1110
/
reflexframe.c
diff --git
a/shellcode/chipcon/cc1110/reflexframe.c
b/shellcode/chipcon/cc1110/reflexframe.c
index
06c15e3
..
6ba01f1
100644
(file)
--- a/
shellcode/chipcon/cc1110/reflexframe.c
+++ b/
shellcode/chipcon/cc1110/reflexframe.c
@@
-111,7
+111,7
@@
void rxwait(){
while(MARCSTATE==MARC_STATE_RX && !RFTXRXIF); //Wait for byte to be ready.
RFTXRXIF=0; //Clear the flag.
while(MARCSTATE==MARC_STATE_RX && !RFTXRXIF); //Wait for byte to be ready.
RFTXRXIF=0; //Clear the flag.
-
HALT
;
+
return
;
packet[i++]=RFD; //Grab the next byte.
}
packet[i++]=RFD; //Grab the next byte.
}
@@
-136,7
+136,7
@@
void main(){
//while(MARCSTATE!=MARC_STATE_IDLE);
while(1){
//while(MARCSTATE!=MARC_STATE_IDLE);
while(1){
-
+ sleepMillis(5);
rxwait();
//idle a bit.
rxwait();
//idle a bit.
@@
-150,15
+150,8
@@
void main(){
//SYNC0=0xAA;
//Transmit carrier for 10ms
//SYNC0=0xAA;
//Transmit carrier for 10ms
- /*
- RFST=RFST_STX;
- while(MARCSTATE!=MARC_STATE_TX);
- sleepMillis(20);
- */
-
- RFON;
-
- sleepMillis(200);
- RFOFF;
+ carrier();
+ //RFON;
+ HALT;
}
}
}
}