2 \author Travis Goodspeed
4 These functions manage command interpretation.
11 unsigned char cmddata[256];
14 //! Transmit a string.
15 void txstring(unsigned char app,
18 unsigned char len=strlen(str);
26 //! Transmits a debugging string out of line.
27 void debugstr(const char *str){
28 txstring(0xFF,0xFF,str);
33 void txdata(unsigned char app,
41 serial_tx(cmddata[i]);
45 //Be very careful changing delay().
46 //It was chosen poorly by trial and error.
48 //! Delay for a count.
49 void delay(unsigned int count){
50 volatile unsigned int i=count;
51 while(i--) asm("nop");
54 void msdelay(unsigned int ms){
55 volatile unsigned int i,j;
59 while(j--) asm("nop");
61 //Using TimerA might be cleaner.