From: travisutk Date: Sun, 28 Feb 2010 20:58:28 +0000 (+0000) Subject: Shorted glitch interrupt, TACTL is now disabled post-glitch. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=70dade1e92e35ac30f7b25ec9499ee012329b21a;ds=sidebyside Shorted glitch interrupt, TACTL is now disabled post-glitch. Inverted P5.7, so inverse glitching is possible again. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@375 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/firmware/apps/glitch/glitch.c b/firmware/apps/glitch/glitch.c index 0e5ddb2..4a50438 100644 --- a/firmware/apps/glitch/glitch.c +++ b/firmware/apps/glitch/glitch.c @@ -46,10 +46,9 @@ void glitchsetup(){ // Timer A0 interrupt service routine interrupt(TIMERA0_VECTOR) Timer_A (void){ - P5OUT&=~BIT7;//Glitch + P5OUT^=BIT7;//Glitch //P5DIR=BIT7; //All else high impedance. - P5OUT|=BIT7;//Normal - TACTL |= MC0;// Stop Timer_A; + P5OUT^=BIT7;//Normal return; } @@ -109,6 +108,7 @@ void glitchhandle(unsigned char app, //FIXME parameters don't work yet. glitchprime(); handle(cmddata[0],cmddata[1],0); + TACTL |= MC0;// Stop Timer_A; break; case GLITCHTIME: _DINT();//disable interrupts