#include "command.h"
#include "glitch.h"
#include "command.h"
#include "glitch.h"
//! Handles a monitor command.
void glitch_handle_fn( uint8_t const app,
uint8_t const verb,
//! Handles a monitor command.
void glitch_handle_fn( uint8_t const app,
uint8_t const verb,
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
glitchsetup();
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
glitchsetup();
}
// Timer A0 interrupt service routine
}
// 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.
//This oughtn't be necessary, but glitches repeat without it.
TACTL=0; //disable counter.
break;
case GLITCHTIME:
debugstr("Measuring start time.");
break;
case GLITCHTIME:
debugstr("Measuring start time.");
- _DINT();//disable interrupts
+ __dint();//disable interrupts
TACTL=0; //clear dividers
TACTL|=TACLR; //clear config
TACTL|=
TACTL=0; //clear dividers
TACTL|=TACLR; //clear config
TACTL|=
- TASSEL_SMCLK //smclk source
+ TASSEL_2 //smclk source
| MC_2; //continuous mode.
//perform the function
| MC_2; //continuous mode.
//perform the function
ifneq (,$(findstring $(board),goodfet24))
mcu ?= msp430f2618
platform := goodfet
ifneq (,$(findstring $(board),goodfet24))
mcu ?= msp430f2618
platform := goodfet
endif
ifneq (,$(findstring $(board),nhb12b))
endif
ifneq (,$(findstring $(board),nhb12b))