X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=firmware%2Fapps%2Fglitch%2Fglitch.c;h=c2446d55c0b1bdc39ce595848433fde3c6abc193;hb=5e2476a1d3fe898f77f6bca399bbff63bb420a2d;hp=8b435940b76a52ed0fbf83c3275be2c43ced3f05;hpb=fa0f91bb0af90149c2502c3e2c0ad06516d28a49;p=goodfet 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");