Steps toward plugin support.
[goodfet] / firmware / goodfet.c
index 8ce6108..7d4a88a 100644 (file)
 void init(){\r
   WDTCTL = WDTPW + WDTHOLD;                 // Stop watchdog timer\r
   \r
-  //LED and TX OUT\r
+  //LED out and on.\r
   PLEDDIR |= PLEDPIN;\r
+  PLEDOUT |= PLEDPIN;\r
   \r
+  //Setup clocks, unique to each '430.\r
   msp430_init_dco();\r
   msp430_init_uart();\r
   \r
-  \r
-  \r
-  \r
   //Enable Interrupts.\r
   //eint();\r
 }\r
@@ -38,7 +37,7 @@ void handle(unsigned char app,
   case SPI:\r
     spihandle(app,verb,len);\r
     break;\r
-  case I2C:\r
+  case I2CAPP:\r
     i2chandle(app,verb,len);\r
     break;\r
   case CHIPCON:\r
@@ -51,7 +50,11 @@ void handle(unsigned char app,
     jtag430handle(app,verb,len);\r
     break;\r
   default:\r
+    #ifdef HANDLEOTHER\r
+    HANDLEOTHER(app,verb,len);\r
+    #else\r
     txdata(app,NOK,0);\r
+    #endif\r
     break;\r
   }\r
 }\r