SPI application transfers correctly; need only !SScommand.
[goodfet] / firmware / apps / goodfet.c
index b6d8a06..9462020 100644 (file)
@@ -1,5 +1,5 @@
-//GOODFET Echo test.\r
-\r
+//GOODFET Main File\r
+//Includes several applications.\r
 \r
 #include "platform.h"\r
 #include "command.h"\r
@@ -36,6 +36,9 @@ void handle(unsigned char app,
   case MONITOR:\r
     monitorhandle(app,verb,len);\r
     break;\r
+  case SPI:\r
+    spihandle(app,verb,len);\r
+    break;\r
   default:\r
     txdata(app,NOK,0);\r
   }\r
@@ -64,15 +67,5 @@ int main(void)
     }\r
     handle(app,verb,len);\r
   }\r
-    \r
-  //while(1) serial_tx(serial_rx());\r
-  while(1) serial_tx(serial_rx());\r
-  \r
-  while(1){\r
-    i = 10000;\r
-    while(i--);\r
-    \r
-    PLEDOUT^=PLEDPIN;  // Blink\r
-  }\r
 }\r
 \r