Minor additions to dsPIC33F/PIC24H programmer:
[goodfet] / firmware / include / command.h
index 0b244ab..743a008 100644 (file)
@@ -115,10 +115,14 @@ void txlong(unsigned long l);
 //! Transmit a word.
 void txword(unsigned int l);
 
+//! Transmit a debug sequence of bytes
+void debugbytes(const char *bytes, unsigned int len);
 //! Transmit a debug string.
 void debugstr(const char *str);
 //! brief Debug a hex word string.
 void debughex(u16 v);
+//! brief Debug a hex long string.
+void debughex32(u32 v);
 
 //! Delay for a count.
 void delay(unsigned int count);
@@ -126,6 +130,19 @@ void delay(unsigned int count);
 void msdelay(unsigned int ms);
 
 
+//! Prepare Timer A; call before using delay_ms or delay_us.
+void prep_timer();
+
+//! Delay for specified number of milliseconds (given 16 MHz clock)
+void delay_ms( unsigned int ms );
+
+//! Delay for specified number of microseconds (given 16 MHz clock)
+void delay_us( unsigned int us );
+
+//! Delay for specified number of clock ticks (16 MHz clock implies 62.5 ns per tick).
+void delay_ticks( unsigned int num_ticks );
+
+
 void monitorhandle(unsigned char, unsigned char, unsigned long);
 void spihandle(unsigned char, unsigned char, unsigned long);
 void i2chandle(unsigned char, unsigned char, unsigned long) WEAKDEF;
@@ -143,3 +160,7 @@ void avrhandle(unsigned char app,
 int smartcardhandle(unsigned char app,
                    unsigned char verb,
                    unsigned int len);
+
+void pichandle( unsigned char app,
+                               unsigned char verb,
+                               unsigned long len );