2 \author Travis Goodspeed
3 \brief These functions manage command interpretation.
10 unsigned char cmddata[256];
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);
37 void txdata(unsigned char app,
45 serial_tx(cmddata[i]);
49 //Be very careful changing delay().
50 //It was chosen poorly by trial and error.
52 //! Delay for a count.
53 void delay(unsigned int count){
54 volatile unsigned int i=count;
55 while(i--) asm("nop");
58 void msdelay(unsigned int ms){
59 volatile unsigned int i,j;
63 while(j--) asm("nop");
65 //Using TimerA might be cleaner.