P4DIR=0; //TODO ASAP remove P4 references.
P4OUT=0xFF;
- P4REN=0xFF;
+ //P4REN=0xFF;
//See GoodFETEM260.py for details.
//The EM260 requires that the host wait for the client.
em260_wake();
- em260woken:
SETMOSI; //Autodetected SPI mode.
CLRSS; //Drop !SS to begin transaction.
while(
(cmddata[len++]=spitrans8(0xFF))!=0xA7
);
+ if(cmddata[0]==0xFE)
+ while(len<cmddata[1]+3)
+ cmddata[len++]=spitrans8(0xFF);
SETSS; //Raise !SS to end transaction.
txdata(app,verb,len);