//Command codes
#define GLITCHAPP 0x80
#define GLITCHVERB 0x81
+#define GLITCHTIME 0x82
#define GLITCHVOLTAGES 0x90
#define GLITCHRATE 0x91
-//! Disable glitch state at init.
+
+//! 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;