projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I2C committed but not tested.
[goodfet]
/
firmware
/
apps
/
goodfet.c
diff --git
a/firmware/apps/goodfet.c
b/firmware/apps/goodfet.c
index
9462020
..
34d7d0a
100644
(file)
--- a/
firmware/apps/goodfet.c
+++ b/
firmware/apps/goodfet.c
@@
-39,6
+39,9
@@
void handle(unsigned char app,
case SPI:
\r
spihandle(app,verb,len);
\r
break;
\r
case SPI:
\r
spihandle(app,verb,len);
\r
break;
\r
+ case I2C:
\r
+ i2chandle(app,verb,len);
\r
+ break;
\r
default:
\r
txdata(app,NOK,0);
\r
}
\r
default:
\r
txdata(app,NOK,0);
\r
}
\r
@@
-61,6
+64,7
@@
int main(void)
app=serial_rx();
\r
verb=serial_rx();
\r
len=serial_rx();
\r
app=serial_rx();
\r
verb=serial_rx();
\r
len=serial_rx();
\r
+
\r
//Read data, if any
\r
for(i=0;i<len;i++){
\r
cmddata[i]=serial_rx();
\r
//Read data, if any
\r
for(i=0;i<len;i++){
\r
cmddata[i]=serial_rx();
\r