Thanks to Bert for catching this.
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@249
12e2690d-a6be-4b82-a7b7-
67c4a43b65c8
- WDTCTL = WDTPW + WDTHOLD; // Stop WDT
- TACTL = TASSEL1 + TACLR; // SMCLK, clear TAR
- CCTL0 = CCIE; // CCR0 interrupt enabled
+ WDTCTL = WDTPW + WDTHOLD; // Stop WDT
+ TACTL = TASSEL1 + TACLR; // SMCLK, clear TAR
+ CCTL0 = CCIE; // CCR0 interrupt enabled
- TACTL |= MC1; // Start Timer_A in continuous mode
+ TACTL |= MC1; // Start Timer_A in continuous mode
_EINT(); // Enable interrupts
#endif
}
_EINT(); // Enable interrupts
#endif
}
glitchvoltages(glitchL,glitchH);
}
glitchvoltages(glitchL,glitchH);
}
-// Timer A0 interrupt service routine
+// Timer A0 interrupt service routine
interrupt(TIMERA0_VECTOR) Timer_A (void)
{
interrupt(TIMERA0_VECTOR) Timer_A (void)
{
switch(glitchstate){
case 0:
P1OUT|=1;
switch(glitchstate){
case 0:
P1OUT|=1;
- CCR0 += glitchcount; // Add Offset to CCR0
+ CCR0 += glitchcount; // Add Offset to CCR0
+#endif