# should include apps/jtag/jtagarm7tdmi.o to build jtag for ARM7
# should include apps/pic/dspic33f.o to build support for PIC24H/dsPIC33F
-apps= $(moreapps) apps/monitor/monitor.o apps/spi/spi.o apps/jtag/jtag.o apps/jtag/jtag430.o apps/jtag/jtag430x2.o apps/avr/avr.o apps/jtag/ejtag.o apps/jtag/jtagxscale.o
+# Used to include $(moreapps)
+apps= apps/monitor/monitor.o apps/spi/spi.o apps/jtag/jtag.o apps/jtag/jtag430.o apps/jtag/jtag430x2.o apps/avr/avr.o apps/jtag/ejtag.o apps/jtag/jtagxscale.o
#apps/chipcon/chipconasm.o removed
libs= lib/$(mcu).o lib/command.o apps/jtag/jtag430asm.o lib/dco_calib.o
install: $(app).hex
#$(BSL) -e
- #ls info.txt && $(BSL) -p info.txt || true #MSP430F2xx targets only, inelegant.
+ ls info.txt && $(BSL) -p info.txt || true #MSP430F2xx targets only, inelegant.
$(BSL) -e -p $(app).hex
verify:
$(BSL) -P $(app).hex -v $(app).hex
//! Set glitching voltages.
void glitchvoltages(u16 gnd, u16 vcc){
- int i;
+
//debugstr("Set glitching voltages: GND and VCC");
//debughex(gnd);
//debughex(vcc);
*/
#ifdef DAC12IR
+ int i;
ADC12CTL0 = REF2_5V + REFON; // Internal 2.5V ref on
// Delay here for reference to settle.
for(i=0;i!=0xFFFF;i++) asm("nop");
//! Initialize registers and all that jazz.
void init(){
+ #ifdef DAC12IR
int i;
+ #endif
+
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
//LED out and on.
ejtaghandle(app,verb,len);
break;
case JTAG430: //Also JTAG430X, JTAG430X2
- jtag430x2handle(app,verb,len);
+ //Revert this when X2 support returns.
+ //jtag430x2handle(app,verb,len);
+ jtag430handle(app,verb,len);
break;
case SMARTCARD:
smartcardhandle(app,verb,len);
//! Delay for a count.
void delay(unsigned int count){
- volatile unsigned int i=count*2;
+ volatile unsigned int i=count;
while(i--) asm("nop");
}
//! MSDelay