X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Flib%2Fcommand.c;h=35afbfbb413a687d2065045d20a0dcbac9cb0390;hp=f585e4cd8bde289800e66ec53b4753de7713049e;hb=e3e1bb605963def746b50f62277180e567d3b615;hpb=0fb25630e9970a4e6d18e190c484f654490565b0 diff --git a/firmware/lib/command.c b/firmware/lib/command.c index f585e4c..35afbfb 100644 --- a/firmware/lib/command.c +++ b/firmware/lib/command.c @@ -1,9 +1,12 @@ +/*! \file command.c + \author Travis Goodspeed + \brief These functions manage command interpretation. +*/ + #include "command.h" #include "platform.h" #include -//! Different command handling functions. - unsigned char cmddata[256]; //! Transmit a string. @@ -18,6 +21,17 @@ void txstring(unsigned char app, serial_tx(*(str++)); } +/*! \brief Transmit a debug string. + + Transmits a debugging string that is to be printed + out of line by the client. This is just for record-keeping; + it is not considered a proper reply to a query. + */ +void debugstr(const char *str){ + txstring(0xFF,0xFF,str); +} + + //! Transmit data. void txdata(unsigned char app, unsigned char verb, @@ -31,6 +45,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;