5 //! Different command handling functions.
7 unsigned char cmddata[256];
10 void txstring(unsigned char app,
13 unsigned char len=strlen(str);
22 void txdata(unsigned char app,
30 serial_tx(cmddata[i]);
34 //Be very careful changing delay().
35 //It was chosen poorly by trial and error.
37 //! Delay for a count.
38 void delay(unsigned int count){
39 volatile unsigned int i=count;
40 while(i--) asm("nop");
43 void msdelay(unsigned int ms){
44 volatile unsigned int i,j;
48 while(j--) asm("nop");
50 //Using TimerA might be cleaner.