X-Git-Url: http://git.rot13.org//?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fglitch%2Fglitch.c;fp=firmware%2Fapps%2Fglitch%2Fglitch.c;h=c2446d55c0b1bdc39ce595848433fde3c6abc193;hp=8b435940b76a52ed0fbf83c3275be2c43ced3f05;hb=b27bfe788715f1d1127a1649ac5e3cbe91037af9;hpb=950a6f9bb0c1a9778f4a8de71557a23e8ac7e9ef diff --git a/firmware/apps/glitch/glitch.c b/firmware/apps/glitch/glitch.c index 8b43594..c2446d5 100644 --- a/firmware/apps/glitch/glitch.c +++ b/firmware/apps/glitch/glitch.c @@ -73,7 +73,7 @@ void glitchapp(u8 app){ //! Set glitching voltages. void glitchvoltages(u16 gnd, u16 vcc){ - int i; + //debugstr("Set glitching voltages: GND and VCC"); //debughex(gnd); //debughex(vcc); @@ -85,6 +85,7 @@ void glitchvoltages(u16 gnd, u16 vcc){ */ #ifdef DAC12IR + int i; ADC12CTL0 = REF2_5V + REFON; // Internal 2.5V ref on // Delay here for reference to settle. for(i=0;i!=0xFFFF;i++) asm("nop");