goodfet.spiflash now does verification.
[goodfet] / firmware / goodfet.c
index c7ec7dd..5d01977 100644 (file)
@@ -5,9 +5,6 @@
 #include "command.h"\r
 #include "apps.h"\r
 \r
-#include <signal.h>\r
-#include <io.h>\r
-#include <iomacros.h>\r
 \r
 \r
 //LED on P1.0\r
 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
@@ -41,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