Add note about another tested PIC target: PIC24FJ64GA002
[goodfet] / firmware / include / glitch.h
index de3d4a8..aef8888 100644 (file)
@@ -7,7 +7,29 @@
 #include <io.h>
 #include <iomacros.h>
 
-//! Disable glitch state at init.
+//Command codes
+#define GLITCHAPP      0x80
+#define GLITCHVERB     0x81
+#define GLITCHTIME     0x82
+#define GLITCHVOLTAGES 0x90
+#define GLITCHRATE     0x91
+
+
+//! Setup glitching.
 void glitchsetup();
-//! Setup analog chain for glitching.
-void glitchsetupdac();
+//! Call this before the function to be glitched.
+void glitchprime();
+
+extern u16 glitchH, glitchL, glitchstate, glitchcount;
+
+//! Glitch an application.
+void glitchapp(u8 app);
+//! Set glitching voltages.
+void glitchvoltages(u16 gnd, u16 vcc);
+//! Set glitching rate.
+void glitchrate(u16 rate);
+
+//! Handles a monitor command.
+extern void glitchhandle(unsigned char app,
+                 unsigned char verb,
+                 unsigned long len) WEAKDEF;