X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fgoodfet.c;h=ee97ebbbca94b885108011a47942d44120453b9e;hp=467ebae8714f8816a5a4ed62dbe6fb8b3ee50342;hb=f2bee319a0c1b0a6c7618c02dbdfeacd68d5fea0;hpb=e2a75fc68bc3cedaadb2db57b9e579a0f4468380 diff --git a/firmware/goodfet.c b/firmware/goodfet.c index 467ebae..ee97ebb 100644 --- a/firmware/goodfet.c +++ b/firmware/goodfet.c @@ -10,7 +10,7 @@ #include "platform.h" #include "command.h" #include "apps.h" - +#include "glitch.h" //LED on P1.0 @@ -22,7 +22,7 @@ void init(){ //LED out and on. PLEDDIR |= PLEDPIN; - PLEDOUT |= PLEDPIN; + PLEDOUT &= ~PLEDPIN; //Setup clocks, unique to each '430. msp430_init_dco(); @@ -30,8 +30,6 @@ void init(){ //Enable Interrupts. //eint(); - - } @@ -40,7 +38,11 @@ void handle(unsigned char app, unsigned char verb, unsigned long len){ //debugstr("GoodFET"); + P1OUT&=~1; switch(app){ + case GLITCH: + glitchhandle(app,verb,len); + break; case MONITOR: monitorhandle(app,verb,len); break; @@ -82,9 +84,11 @@ int main(void) unsigned long len; init(); + glitchsetup(); txstring(MONITOR,OK,"http://goodfet.sf.net/"); + //Command loop. There's no end! while(1){ //Magic 3