+#ifdef FIFOP
+
+ /* //Has there been an overflow?
+ if(ccspi_status()&BIT5){
+ debugstr("Clearing underflow");
+ CLRSS;
+ ccspitrans8(0x09); //SFLUSHTX
+ SETSS;
+ }
+ */
+
+
+ //Wait for last packet to TX.
+ //while(ccspi_status()&BIT3);
+
+ //Load the packet.
+ CLRSS;
+ ccspitrans8(CCSPI_TXFIFO);
+ for(i=0;i<cmddata[0];i++)
+ ccspitrans8(cmddata[i]);
+ SETSS;
+
+ //Transmit the packet.
+ CLRSS;
+ ccspitrans8(0x04); //STXON
+ SETSS;
+
+
+ txdata(app,verb,0);
+#else
+ debugstr("Can't TX a packet with SFD and FIFOP definitions.");
+ txdata(app,NOK,0);
+#endif
+ break;