From e375e55005a476224e676015fb184ffeac170452 Mon Sep 17 00:00:00 2001 From: travisutk Date: Sun, 28 Feb 2010 20:51:56 +0000 Subject: [PATCH] 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 --- firmware/apps/glitch/glitch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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], -- 2.20.1