X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fgoodfet.c;h=a6ccae401655cf1666792487691ca6ca1f946c1a;hp=acf6772644e034d498fa4ff5a2475f7ae1685e4a;hb=3e4992b4d109f361b42abdda403471860edfeabf;hpb=87fdfdcad02b7ada70fc1681d63e2ed2359dbfe9 diff --git a/firmware/goodfet.c b/firmware/goodfet.c index acf6772..a6ccae4 100644 --- a/firmware/goodfet.c +++ b/firmware/goodfet.c @@ -41,14 +41,19 @@ void init(){ relates to the FTDI on-chip 3V3 regulator being specified up to only 50 mA. */ - P5DIR |= 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(); msp430_init_uart(); - + //DAC should be at full voltage if it exists. #ifdef DAC12IR //glitchvoltages(0xfff,0xfff); @@ -107,7 +112,9 @@ void handle(unsigned char app, case PIC: pichandle(app,verb,len); break; - + case ADC10: + adchandle(app,verb,len); + break; case I2CAPP: i2chandle(app,verb,len); break;