AVR support for setting lock bits.
[goodfet] / firmware / goodfet.c
index 744aa9d..b08313f 100644 (file)
@@ -10,7 +10,7 @@
 #include "platform.h"\r
 #include "command.h"\r
 #include "apps.h"\r
 #include "platform.h"\r
 #include "command.h"\r
 #include "apps.h"\r
-\r
+#include "glitch.h"\r
 \r
 \r
 //LED on P1.0\r
 \r
 \r
 //LED on P1.0\r
@@ -39,6 +39,9 @@ void handle(unsigned char app,
            unsigned long len){\r
   //debugstr("GoodFET");\r
   switch(app){\r
            unsigned long len){\r
   //debugstr("GoodFET");\r
   switch(app){\r
+  case GLITCH:\r
+    glitchhandle(app,verb,len);\r
+    break;\r
   case MONITOR:\r
     monitorhandle(app,verb,len);\r
     break;\r
   case MONITOR:\r
     monitorhandle(app,verb,len);\r
     break;\r
@@ -80,9 +83,11 @@ int main(void)
   unsigned long len;\r
   \r
   init();\r
   unsigned long len;\r
   \r
   init();\r
+  glitchsetup();\r
   \r
   txstring(MONITOR,OK,"http://goodfet.sf.net/");\r
   \r
   \r
   txstring(MONITOR,OK,"http://goodfet.sf.net/");\r
   \r
+  \r
   //Command loop.  There's no end!\r
   while(1){\r
     //Magic 3\r
   //Command loop.  There's no end!\r
   while(1){\r
     //Magic 3\r