Added a GLITCHTIME verb (0x82) for timing the execution of a verb.
[goodfet] / firmware / goodfet.c
index aa3a3f5..2fe74e1 100644 (file)
@@ -28,6 +28,11 @@ void init(){
   msp430_init_dco();\r
   msp430_init_uart();\r
   \r
+  //DAC should be at full voltage if it exists.\r
+  #ifdef DAC12IR\r
+  glitchvoltages(0xfff,0xfff);\r
+  #endif\r
+  \r
   //Enable Interrupts.\r
   //eint();\r
 }\r
@@ -69,9 +74,9 @@ void handle(unsigned char app,
       pluginhandle(app,verb,len);\r
     }else{\r
       debugstr("Plugin missing.");\r
+      debughex(app);\r
       txdata(app,NOK,0);\r
     }\r
-      \r
     break;\r
   }\r
 }\r