+ glitchvoltages(glitchL,glitchH);
+}
+
+// Timer A0 interrupt service routine
+interrupt(TIMERA0_VECTOR) Timer_A (void)
+{
+
+ switch(glitchstate){
+ case 0:
+ P1OUT|=1;
+ glitchstate=1;
+ DAC12_0DAT = glitchH;
+ break;
+ case 1:
+ P1OUT|=1;
+ glitchstate=0;
+ DAC12_0DAT = glitchL;
+ break;
+ default:
+ P1OUT&=~1;
+ //Do nothing.
+ break;
+ }
+ CCR0 += glitchcount; // Add Offset to CCR0
+}
+
+
+
+
+u16 glitchH=0xfff, glitchL=0xfff,
+ glitchstate=2, glitchcount=0;
+
+//! Glitch an application.
+void glitchapp(u8 app){
+ debugstr("That app is not yet supported.");
+}
+
+
+//! Set glitching voltages.
+void glitchvoltages(u16 low, u16 high){