From: travisutk Date: Mon, 1 Mar 2010 02:36:57 +0000 (+0000) Subject: Clocking changes. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=f10e55ab25dfe0b4114a1700920a1433708e8fcd Clocking changes. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@379 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/firmware/apps/glitch/glitch.c b/firmware/apps/glitch/glitch.c index 4a50438..53b0376 100644 --- a/firmware/apps/glitch/glitch.c +++ b/firmware/apps/glitch/glitch.c @@ -107,6 +107,7 @@ void glitchhandle(unsigned char app, case GLITCHVERB: //FIXME parameters don't work yet. glitchprime(); + TAR=0; //Reset clock. handle(cmddata[0],cmddata[1],0); TACTL |= MC0;// Stop Timer_A; break; @@ -119,9 +120,10 @@ void glitchhandle(unsigned char app, //perform the function silent++;//Don't want the function to return anything. + TAR=0; handle(cmddata[0],cmddata[1],0); - silent--; cmddataword[0]=TAR; //Return counter. + silent--; txdata(app,verb,2); break; case START: @@ -132,7 +134,7 @@ void glitchhandle(unsigned char app, while(1){ P5OUT&=~BIT7;//Glitch //asm("nop");//asm("nop");asm("nop");asm("nop");asm("nop");asm("nop"); - asm("nop"); //Not necessary. + //asm("nop"); //Not necessary. P5OUT|=BIT7;//Normal asm("nop");asm("nop");asm("nop");asm("nop");asm("nop");asm("nop"); asm("nop");asm("nop");asm("nop");asm("nop");asm("nop");asm("nop");