From: travisutk Date: Fri, 25 Jun 2010 13:42:09 +0000 (+0000) Subject: Brought glitch app back. Might break lesser builds. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=704a3e5036b88ba2fc03606d24b0e474b22338e8 Brought glitch app back. Might break lesser builds. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@641 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/firmware/Makefile b/firmware/Makefile index 91fb495..f96968f 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -30,7 +30,7 @@ CC=msp430-gcc -Wall -Os -g -mmcu=$(mcu) -D$(mcu) -D$(platform) -Dplatform=$(plat #Define extra modules here. #moreapps?=apps/i2c/i2c.o apps/glitch/glitch.o apps/jtag/sbw.o apps/smartcard/smartcard.o apps/jtag/ejtag.o apps/jtag/jtagxscale.o -moreapps?=apps/jtag/sbw.o +moreapps?=apps/jtag/sbw.o apps/glitch/glitch.o # should include apps/jtag/jtagarm7tdmi.o to build jtag for ARM7 # should include apps/pic/dspic33f.o to build support for PIC24H/dsPIC33F diff --git a/firmware/apps/glitch/glitch.c b/firmware/apps/glitch/glitch.c index c2446d5..0691932 100644 --- a/firmware/apps/glitch/glitch.c +++ b/firmware/apps/glitch/glitch.c @@ -123,6 +123,7 @@ 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 @@ -135,6 +136,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: