Removed many references to P1OUT.
[goodfet] / firmware / apps / radios / nrf.c
index 1e1f937..9254f93 100644 (file)
@@ -91,12 +91,12 @@ void nrfhandle(unsigned char app,
               unsigned long len){
   unsigned long i;
   
+  //Drop CE to passify radio.
   RADIOPASSIVE;
-  
   //Raise !SS to end transaction, just in case we forgot.
   P5OUT|=SS;
   nrfsetup();
-    
+  
   switch(verb){
     //PEEK and POKE might come later.
   case READ:  
@@ -131,7 +131,6 @@ void nrfhandle(unsigned char app,
     break;
   case NRF_RX:
     RADIOPASSIVE;
-    
     //Get the packet.
     P5OUT&=~SS;
     nrftrans8(NRF_R_RX_PAYLOAD);
@@ -151,12 +150,14 @@ void nrfhandle(unsigned char app,
     txdata(app,verb,32);
     break;
   case NRF_TX:
+  case NRF_TX_FLUSH:
   default:
     debugstr("Not yet supported.");
     txdata(app,verb,0);
     break;
   }
   
+
   P5OUT|=SS;//End session
   RADIOACTIVE;
 }