projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
one-line change to make all GPIOs usable on the 80-pin 261x packages
[goodfet]
/
firmware
/
goodfet.c
diff --git
a/firmware/goodfet.c
b/firmware/goodfet.c
index
11afcdd
..
39c8753
100644
(file)
--- a/
firmware/goodfet.c
+++ b/
firmware/goodfet.c
@@
-75,6
+75,11
@@
void handle(unsigned char app,
case AVR:
avrhandle(app,verb,len);
break;
case AVR:
avrhandle(app,verb,len);
break;
+#ifdef INSTALL_PIC_APP
+ case PIC:
+ pichandle(app,verb,len);
+ break;
+#endif
case I2CAPP:
i2chandle(app,verb,len);
break;
case I2CAPP:
i2chandle(app,verb,len);
break;
@@
-93,6
+98,9
@@
void handle(unsigned char app,
case SMARTCARD:
smartcardhandle(app,verb,len);
break;
case SMARTCARD:
smartcardhandle(app,verb,len);
break;
+ case JTAGARM7TDMI:
+ jtagarm7tdmihandle(app,verb,len);
+ break;
default:
if(pluginhandle){
pluginhandle(app,verb,len);
default:
if(pluginhandle){
pluginhandle(app,verb,len);
@@
-126,7
+134,7
@@
int main(void)
app=serial_rx();
// If the app is the reset byte (0x80) increment and loop
app=serial_rx();
// If the app is the reset byte (0x80) increment and loop
- if (app ==
0x80
) {
+ if (app ==
RESET
) {
reset_count++;
if (reset_count > 4) {
reset_count++;
if (reset_count > 4) {
@@
-155,7
+163,7
@@
int main(void)
handle(app,verb,len);
}else{
//Listen to the blaberring.
handle(app,verb,len);
}else{
//Listen to the blaberring.
- for(i
-
0;i<len;i++)
+ for(i
=
0;i<len;i++)
serial_rx();
//Reply with an error.
debugstr("Buffer length exceeded.");
serial_rx();
//Reply with an error.
debugstr("Buffer length exceeded.");