X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=firmware%2Fapps%2Fglitch%2Fglitch.c;h=da9401766866bf2831e89175d524a852eef4596d;hb=afaf40302576e6ec8d7436a1104d4c175045bcb1;hp=c2446d55c0b1bdc39ce595848433fde3c6abc193;hpb=b27bfe788715f1d1127a1649ac5e3cbe91037af9;p=goodfet diff --git a/firmware/apps/glitch/glitch.c b/firmware/apps/glitch/glitch.c index c2446d5..da94017 100644 --- a/firmware/apps/glitch/glitch.c +++ b/firmware/apps/glitch/glitch.c @@ -123,11 +123,13 @@ void glitchhandle(unsigned char app, TACTL |= MC0;// Stop Timer_A; break; case GLITCHTIME: + debugstr("Measuring start time."); _DINT();//disable interrupts TACTL=0; //clear dividers TACTL|=TACLR; //clear config - TACTL|=TASSEL_SMCLK| //smclk source - MC_2; //continuous mode. + TACTL|= + TASSEL_SMCLK //smclk source + | MC_2; //continuous mode. //perform the function silent++;//Don't want the function to return anything. @@ -135,6 +137,8 @@ void glitchhandle(unsigned char app, handle(cmddata[0],cmddata[1],0); cmddataword[0]=TAR; //Return counter. silent--; + debugstr("Measured start time."); + debughex(cmddataword[0]); txdata(app,verb,2); break; case START: