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);
37 void txdata(unsigned char app,
47 serial_tx(cmddata[i]);
51 //Be very careful changing delay().
52 //It was chosen poorly by trial and error.
54 //! Delay for a count.
55 void delay(unsigned int count){
56 volatile unsigned int i=count;
57 while(i--) asm("nop");
60 void msdelay(unsigned int ms){
61 volatile unsigned int i,j;
65 while(j--) asm("nop");
67 //Using TimerA might be cleaner.