Modified CCSPI sniffing.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Sat, 24 Dec 2011 14:42:29 +0000 (14:42 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Sat, 24 Dec 2011 14:42:29 +0000 (14:42 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1074 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

firmware/apps/radios/ccspi.c

index eb7417a..8a8d7e8 100644 (file)
@@ -139,7 +139,7 @@ void ccspi_handle_fn( uint8_t const app,
 #ifdef FIFOP
     //Has there been an overflow?
     if((!FIFO)&&FIFOP){
 #ifdef FIFOP
     //Has there been an overflow?
     if((!FIFO)&&FIFOP){
-      debugstr("Clearing overflow");
+      //debugstr("Clearing overflow");
       CLRSS;
       ccspitrans8(0x08); //SFLUSHRX
       SETSS;
       CLRSS;
       ccspitrans8(0x08); //SFLUSHRX
       SETSS;
@@ -149,7 +149,7 @@ void ccspi_handle_fn( uint8_t const app,
     if(FIFOP&&FIFO){
       //Wait for completion.
       while(SFD);
     if(FIFOP&&FIFO){
       //Wait for completion.
       while(SFD);
-
+      
       //Get the packet.
       CLRSS;
       ccspitrans8(CCSPI_RXFIFO | 0x40);
       //Get the packet.
       CLRSS;
       ccspitrans8(CCSPI_RXFIFO | 0x40);
@@ -160,9 +160,11 @@ void ccspi_handle_fn( uint8_t const app,
       SETSS;
 
       //Flush buffer.
       SETSS;
 
       //Flush buffer.
-      CLRSS;
-      ccspitrans8(0x08); //SFLUSHRX
-      SETSS;
+      //CLRSS;
+      //ccspitrans8(0x08); //SFLUSHRX
+      //SETSS;
+      
+      
       //Only should transmit length of one more than the reported
       // length of the frame, which holds the length byte:
       txdata(app,verb,cmddata[0]+1);
       //Only should transmit length of one more than the reported
       // length of the frame, which holds the length byte:
       txdata(app,verb,cmddata[0]+1);