From: travisutk Date: Mon, 15 Feb 2010 01:59:19 +0000 (+0000) Subject: Glitching work. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=776e412df82634e84aa68074a965c0492ec809b0 Glitching work. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@318 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- 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){