Removed deprecated MSP430 flash test.
[goodfet] / firmware / goodfet.c
index 7d4a88a..c310c0c 100644 (file)
@@ -1,5 +1,11 @@
-//GOODFET Main File\r
-//Includes several applications.\r
+/*! \file goodfet.c\r
+  \author Travis Goodspeed\r
+  \brief Main module.\r
+  \r
+  This is the main module of the GoodFET, which calls the initialization\r
+  routines and delegates commands to the various applications.\r
+*/\r
+\r
 \r
 #include "platform.h"\r
 #include "command.h"\r
@@ -30,6 +36,7 @@ void init(){
 void handle(unsigned char app,\r
            unsigned char verb,\r
            unsigned char len){\r
+  //debugstr("GoodFET");\r
   switch(app){\r
   case MONITOR:\r
     monitorhandle(app,verb,len);\r
@@ -46,8 +53,8 @@ void handle(unsigned char app,
   case JTAG:\r
     jtaghandle(app,verb,len);\r
     break;\r
-  case JTAG430:\r
-    jtag430handle(app,verb,len);\r
+  case JTAG430: //Also JTAG430X, JTAG430X2\r
+    jtag430x2handle(app,verb,len);\r
     break;\r
   default:\r
     #ifdef HANDLEOTHER\r
@@ -67,19 +74,6 @@ int main(void)
   \r
   init();\r
   \r
-  \r
-  //Ready\r
-  //txdata(MONITOR,OK,0);\r
-  //while (1){\r
-  //  txdata(0xFF,0xff,0x0);\r
-  //  delay(1000);\r
-  //}\r
-  //delay(0xffff);\r
-  //while(*((int*)0x1001));\r
-  \r
-  //while(1)\r
-  //  txdata(0xFF,0xFF,0);\r
-  \r
   txstring(MONITOR,OK,"http://goodfet.sf.net/");\r
   \r
   //Command loop.  There's no end!\r