2 \author Travis Goodspeed
3 \brief These functions manage command interpretation.
10 unsigned char cmddata[256];
11 unsigned char silent=0;
13 //! Transmit a string.
14 void txstring(unsigned char app,
17 unsigned char len=strlen(str);
25 /*! \brief Transmit a debug string.
27 Transmits a debugging string that is to be printed
28 out of line by the client. This is just for record-keeping;
29 it is not considered a proper reply to a query.
31 void debugstr(const char *str){
32 txstring(0xFF,0xFF,str);
35 //! Transmit a header.
36 void txhead(unsigned char app,
45 void txdata(unsigned char app,
53 serial_tx(cmddata[i]);
57 //Be very careful changing delay().
58 //It was chosen poorly by trial and error.
60 //! Delay for a count.
61 void delay(unsigned int count){
62 volatile unsigned int i=count;
63 while(i--) asm("nop");
66 void msdelay(unsigned int ms){
67 volatile unsigned int i,j;
71 while(j--) asm("nop");
73 //Using TimerA might be cleaner.