From: travisutk Date: Sun, 28 Feb 2010 20:51:56 +0000 (+0000) Subject: Reduced glitch offset, stopped LED blinking during glitch. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=e375e55005a476224e676015fb184ffeac170452;ds=inline Reduced glitch offset, stopped LED blinking during glitch. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@374 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/firmware/apps/glitch/glitch.c b/firmware/apps/glitch/glitch.c index 4c4c6cf..0e5ddb2 100644 --- a/firmware/apps/glitch/glitch.c +++ b/firmware/apps/glitch/glitch.c @@ -39,7 +39,7 @@ void glitchsetup(){ WDTCTL = WDTPW + WDTHOLD; // Stop WDT TACTL = TASSEL1 + TACLR; // SMCLK, clear TAR CCTL0 = CCIE; // CCR0 interrupt enabled - CCR0 = glitchcount+0x15; // Compare Value + CCR0 = glitchcount+0x10; // Compare Value TACTL |= MC_2; // continuous mode. #endif } @@ -95,7 +95,6 @@ void glitchrate(u16 rate){ void glitchhandle(unsigned char app, unsigned char verb, unsigned long len){ - P1OUT&=~1; switch(verb){ case GLITCHVOLTAGES: glitchvoltages(cmddataword[0],