summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2ff5698)
#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;
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);
- 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);