turn ftdi driver into echo server
[goodfet] / firmware / lib / command.c
index ec74ebb..6388c64 100644 (file)
@@ -66,7 +66,7 @@ void txhead(unsigned char app,
 void txdata(unsigned char app,
            unsigned char verb,
            unsigned long len){
-  unsigned int i=0;
+  unsigned long i=0;
   if(silent)
     return;
   txhead(app,verb,len);
@@ -148,10 +148,10 @@ void prep_timer()
   TBCTL = 0x0204; /* Driven by SMCLK; disable Timer B interrupts;
                     reset timer in case it was previously in use */
   #else
-  #warning "Function unimplemented for this platform."
+  #warning "prep_timer() unimplemented for this platform."
   #endif
 }
-
+#if (platform != tilaunchpad)
 //! Delay for specified number of milliseconds (given 16 MHz clock)
 void delay_ms( unsigned int ms )
 {
@@ -165,7 +165,7 @@ void delay_ms( unsigned int ms )
   }
   TBCTL = 0x0204; // Reset Timer B, till next time
   #else
-  #warning "Function unimplemented for this platform."
+  debugstr("delay_ms unimplemented");
   #endif
 }
 
@@ -182,7 +182,7 @@ void delay_us( unsigned int us )
   }
   TBCTL = 0x0204; // Reset Timer B, till next time
   #else
-  #warning "Function unimplemented for this platform."
+  debugstr("delay_us unimplemented");
   #endif
 }
 
@@ -195,6 +195,7 @@ void delay_ticks( unsigned int num_ticks )
     asm( "nop" );
   TBCTL = 0x0204; // Reset Timer B, till next time
   #else
-  #warning "Function unimplemented for this platform."
+  debugstr("delay_ticks unimplemented");
   #endif
 }
+#endif