5 //! Different command handling functions.
7 unsigned char cmddata[256];
10 //! Transmit a string.
11 void txstring(unsigned char app,
14 unsigned char len=strlen(str);
22 //! Transmits a debugging string out of line.
23 void debugstr(const char *str){
24 txstring(0xFF,0xFF,str);
29 void txdata(unsigned char app,
37 serial_tx(cmddata[i]);
41 //Be very careful changing delay().
42 //It was chosen poorly by trial and error.
44 //! Delay for a count.
45 void delay(unsigned int count){
46 volatile unsigned int i=count;
47 while(i--) asm("nop");
50 void msdelay(unsigned int ms){
51 volatile unsigned int i,j;
55 while(j--) asm("nop");
57 //Using TimerA might be cleaner.