#include "command.h"
#include "glitch.h"
+#include <msp430.h>
+
//! Handles a monitor command.
void glitch_handle_fn( uint8_t const app,
uint8_t const verb,
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
glitchsetup();
- _EINT();
+ //_EINT();
+ __eint();
return;
#endif
}
}
// Timer A0 interrupt service routine
-interrupt(TIMERA0_VECTOR) Timer_A (void){
+void __attribute__((interrupt(TIMERA0_VECTOR))) Timer_A (void){
//This oughtn't be necessary, but glitches repeat without it.
TACTL=0; //disable counter.
break;
case GLITCHTIME:
debugstr("Measuring start time.");
- _DINT();//disable interrupts
+ __dint();//disable interrupts
TACTL=0; //clear dividers
TACTL|=TACLR; //clear config
TACTL|=
- TASSEL_SMCLK //smclk source
+ TASSEL_2 //smclk source
| MC_2; //continuous mode.
//perform the function