From 776e412df82634e84aa68074a965c0492ec809b0 Mon Sep 17 00:00:00 2001 From: travisutk Date: Mon, 15 Feb 2010 01:59:19 +0000 Subject: [PATCH] Glitching work. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@318 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- firmware/apps/avr/avr.c | 3 ++- firmware/apps/glitch/glitch.c | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/apps/avr/avr.c b/firmware/apps/avr/avr.c index 98d7566..b052272 100644 --- a/firmware/apps/avr/avr.c +++ b/firmware/apps/avr/avr.c @@ -21,7 +21,8 @@ void avrsetup(){ //! Initialized an attached AVR. void avrconnect(){ //set I/O pins - avrsetup(); + avrsetup(); //Cut this? + //delay(50); //Pulse !RST (SS) at least twice while CLK is low. CLRCLK; diff --git a/firmware/apps/glitch/glitch.c b/firmware/apps/glitch/glitch.c index bdaa705..b5cd5bc 100644 --- a/firmware/apps/glitch/glitch.c +++ b/firmware/apps/glitch/glitch.c @@ -65,8 +65,7 @@ interrupt(TIMERA0_VECTOR) Timer_A (void) -u16 glitchH=0xfff, glitchL=0xfff, - glitchstate=2, glitchcount=0; +u16 glitchcount=0; //! Glitch an application. void glitchapp(u8 app){ -- 2.20.1