X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fgoodfet.c;h=5d01977a47f5f36f1a146dc8fb47b0ce2007d5f1;hp=8ce61087de417c42ae3c6c7b029dad5c09f05647;hb=c28cce5afcc1e1747f51e5afe15e338dae030376;hpb=9fff819ee3088834ef10c050bcdc0bc5f93dcd2a diff --git a/firmware/goodfet.c b/firmware/goodfet.c index 8ce6108..5d01977 100644 --- a/firmware/goodfet.c +++ b/firmware/goodfet.c @@ -14,15 +14,14 @@ void init(){ WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer - //LED and TX OUT + //LED out and on. PLEDDIR |= PLEDPIN; + PLEDOUT |= PLEDPIN; + //Setup clocks, unique to each '430. msp430_init_dco(); msp430_init_uart(); - - - //Enable Interrupts. //eint(); } @@ -38,7 +37,7 @@ void handle(unsigned char app, case SPI: spihandle(app,verb,len); break; - case I2C: + case I2CAPP: i2chandle(app,verb,len); break; case CHIPCON: