X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fgoodfet.c;h=744aa9dc75bbb58b916c77f5ead0ce97c39ae988;hp=deb299158981dc553f31c5d9a322e2ce8c38b3b4;hb=8869ee2fe66d402ec6e56f256098486c6904c871;hpb=f110fe63257686b9fcac78824d61ec429c2a5226 diff --git a/firmware/goodfet.c b/firmware/goodfet.c index deb2991..744aa9d 100644 --- a/firmware/goodfet.c +++ b/firmware/goodfet.c @@ -22,7 +22,7 @@ void init(){ //LED out and on. PLEDDIR |= PLEDPIN; - PLEDOUT |= PLEDPIN; + PLEDOUT &= ~PLEDPIN; //Setup clocks, unique to each '430. msp430_init_dco(); @@ -32,6 +32,7 @@ void init(){ //eint(); } + //! Handle a command. void handle(unsigned char app, unsigned char verb, @@ -44,6 +45,9 @@ void handle(unsigned char app, case SPI: spihandle(app,verb,len); break; + case AVR: + avrhandle(app,verb,len); + break; case I2CAPP: i2chandle(app,verb,len); break;