X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fgoodfet.c;h=b8d9e3dbe7940936065d98a0c4bb9b4ccbe5c7ff;hp=0d78ea3eda5fe040dcd86a2f3382b4b47ebc08a2;hb=ea94279f763800d71e86d9bb25d140bf78dfb4ea;hpb=b8a16dae1040606e2c6bddb922dd21c28e8fcc52 diff --git a/firmware/goodfet.c b/firmware/goodfet.c index 0d78ea3..b8d9e3d 100644 --- a/firmware/goodfet.c +++ b/firmware/goodfet.c @@ -40,9 +40,15 @@ void init(){ may have trouble communicating with the client. The latter likely relates to the FTDI on-chip 3V3 regulator being specified up to only 50 mA. */ - P5DIR |= BIT0; - P5REN &= ~BIT0; - P5OUT &= ~BIT0; + + + //P5REN &= ~BIT0; //DO NOT UNCOMMENT. Breaks GF1x support. + + //This will have to be cut soon. Use pulling resistors instead. + /* + P5DIR |= BIT0; + P5OUT &= ~BIT0; + */ //Setup clocks, unique to each '430. msp430_init_dco(); @@ -83,7 +89,7 @@ void handle(unsigned char app, unsigned char verb, unsigned long len){ //debugstr("GoodFET"); - P1OUT&=~1; + PLEDOUT&=~PLEDPIN; switch(app){ case GLITCH: glitchhandle(app,verb,len); @@ -97,6 +103,9 @@ void handle(unsigned char app, case NRF: nrfhandle(app,verb,len); break; + case CCSPI: + ccspihandle(app,verb,len); + break; case AVR: avrhandle(app,verb,len); break;