From: travisutk Date: Wed, 17 Jun 2009 22:12:11 +0000 (+0000) Subject: Beginnings of JTAG. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=8b09ba82bd3b82cfbe869408fc36e558550b9b69 Beginnings of JTAG. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@37 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/firmware/apps/Makefile b/firmware/apps/Makefile index 7228f2c..1ffeb5a 100644 --- a/firmware/apps/Makefile +++ b/firmware/apps/Makefile @@ -10,7 +10,7 @@ GCCINC=-T ../ldscripts/161x.x CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../include -apps= monitor/monitor.c spi/spi.c i2c/i2c.c chipcon/chipcon.c +apps= monitor/monitor.c spi/spi.c i2c/i2c.c chipcon/chipcon.c jtag/jtag.c libs= ../lib/msp430f1612.c ../lib/command.c app=goodfet diff --git a/firmware/apps/goodfet.c b/firmware/apps/goodfet.c index 9dbe0ad..19feb63 100644 --- a/firmware/apps/goodfet.c +++ b/firmware/apps/goodfet.c @@ -45,8 +45,8 @@ void handle(unsigned char app, case CHIPCON: cchandle(app,verb,len); break; - case JTAG430: - //msphandle(app,verb,len); + case JTAG: + jtaghandle(app,verb,len); break; default: txdata(app,NOK,0); diff --git a/firmware/include/jtag.h b/firmware/include/jtag.h new file mode 100644 index 0000000..6f9b6dc --- /dev/null +++ b/firmware/include/jtag.h @@ -0,0 +1,6 @@ + + +//! Shift 8 bits of the IR. +unsigned char jtag_ir_shift8(unsigned char); +//! Shift 16 bits of the DR. +unsigned int jtag_dr_shift16(unsigned int in);