Reception working in reflexframe.c.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 24 Dec 2010 01:31:15 +0000 (01:31 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 24 Dec 2010 01:31:15 +0000 (01:31 +0000)
Still need to figure out why it's broken by transmission.

git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@800 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

shellcode/chipcon/cc1110/reflexframe.c

index 06c15e3..6ba01f1 100644 (file)
@@ -111,7 +111,7 @@ void rxwait(){
     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.
   }
@@ -136,7 +136,7 @@ void main(){
   //while(MARCSTATE!=MARC_STATE_IDLE);
 
   while(1){
-    
+    sleepMillis(5);
     rxwait();
     
     //idle a bit.
@@ -150,15 +150,8 @@ void main(){
     //SYNC0=0xAA;
     
     //Transmit carrier for 10ms
-    /*
-      RFST=RFST_STX;
-      while(MARCSTATE!=MARC_STATE_TX);
-      sleepMillis(20);
-    */
-    
-    RFON;
-    
-    sleepMillis(200);
-    RFOFF;
+    carrier();
+    //RFON;
+    HALT;
   }  
 }