2 \author Travis Goodspeed
3 \brief These functions manage command interpretation.
10 unsigned char cmddata[256];
12 //! Transmit a string.
13 void txstring(unsigned char app,
16 unsigned char len=strlen(str);
24 /*! \brief Transmit a debug string.
26 Transmits a debugging string that is to be printed
27 out of line by the client. This is just for record-keeping;
28 it is not considered a proper reply to a query.
30 void debugstr(const char *str){
31 txstring(0xFF,0xFF,str);
36 void txdata(unsigned char app,
44 serial_tx(cmddata[i]);
48 //Be very careful changing delay().
49 //It was chosen poorly by trial and error.
51 //! Delay for a count.
52 void delay(unsigned int count){
53 volatile unsigned int i=count;
54 while(i--) asm("nop");
57 void msdelay(unsigned int ms){
58 volatile unsigned int i,j;
62 while(j--) asm("nop");
64 //Using TimerA might be cleaner.