projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Steps toward plugin support.
[goodfet]
/
firmware
/
apps
/
spi
/
spi.c
diff --git
a/firmware/apps/spi/spi.c
b/firmware/apps/spi/spi.c
index
a5f72b8
..
f4c6560
100644
(file)
--- a/
firmware/apps/spi/spi.c
+++ b/
firmware/apps/spi/spi.c
@@
-186,7
+186,11
@@
void spihandle(unsigned char app,
for(i=0;i<len;i++)
spitrans8(cmddata[i]);
P5OUT|=SS; //Raise !SS to end transaction.
- while(spiflash_status()&0x01);//while busy
+
+ while(spiflash_status()&0x01)//while busy
+ P1OUT^=1;
+ P1OUT&=~1;
+
txdata(app,verb,len);
break;