Rearranging firmware for use with Doxygen.
[goodfet] / firmware / lib / command.c
index f585e4c..6d72108 100644 (file)
@@ -1,11 +1,16 @@
+/*! \file command.c
+  \author Travis Goodspeed
+  
+  These functions manage command interpretation.
+*/
+
 #include "command.h"
 #include "platform.h"
 #include <string.h>
 
-//! Different command handling functions.
-
 unsigned char cmddata[256];
 
+
 //! Transmit a string.
 void txstring(unsigned char app,
              unsigned char verb,
@@ -18,6 +23,12 @@ void txstring(unsigned char app,
     serial_tx(*(str++));
 }
 
+//! Transmits a debugging string out of line.
+void debugstr(const char *str){
+  txstring(0xFF,0xFF,str);
+}
+
+
 //! Transmit data.
 void txdata(unsigned char app,
            unsigned char verb,
@@ -31,6 +42,9 @@ void txdata(unsigned char app,
   }
 }
 
+//Be very careful changing delay().
+//It was chosen poorly by trial and error.
+
 //! Delay for a count.
 void delay(unsigned int count){
   volatile unsigned int i=count;