Beginnings of JTAG.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 17 Jun 2009 22:12:11 +0000 (22:12 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 17 Jun 2009 22:12:11 +0000 (22:12 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@37 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

firmware/apps/Makefile
firmware/apps/goodfet.c
firmware/include/jtag.h [new file with mode: 0644]

index 7228f2c..1ffeb5a 100644 (file)
@@ -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
 
index 9dbe0ad..19feb63 100644 (file)
@@ -45,8 +45,8 @@ void handle(unsigned char app,
   case CHIPCON:\r
     cchandle(app,verb,len);\r
     break;\r
-  case JTAG430:\r
-    //msphandle(app,verb,len);\r
+  case JTAG:\r
+    jtaghandle(app,verb,len);\r
     break;\r
   default:\r
     txdata(app,NOK,0);\r
diff --git a/firmware/include/jtag.h b/firmware/include/jtag.h
new file mode 100644 (file)
index 0000000..6f9b6dc
--- /dev/null
@@ -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);