X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fgoodfet.c;h=ee97ebbbca94b885108011a47942d44120453b9e;hp=b9485aa5b87d233347adb8b8bf56b5428314ef66;hb=6a72fa1ddf413cea756da86b79f9cb10c66e0a06;hpb=d8eef3ccb487fb87b2aca1dc6a0bd9b9bbe31861 diff --git a/firmware/goodfet.c b/firmware/goodfet.c index b9485aa..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(); @@ -38,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; @@ -80,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