projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bringing back MSP430X2 JTAG. Not there yet.
[goodfet]
/
firmware
/
include
/
jtag.h
diff --git
a/firmware/include/jtag.h
b/firmware/include/jtag.h
index
b4c4155
..
7aa1856
100644
(file)
--- a/
firmware/include/jtag.h
+++ b/
firmware/include/jtag.h
@@
-6,9
+6,12
@@
#ifndef JTAG_H
#define JTAG_H
#ifndef JTAG_H
#define JTAG_H
-#include <signal.h>
-#include <io.h>
-#include <iomacros.h>
+#include "app.h"
+
+#define JTAG 0x10
+
+//! JTAG device ID.
+extern unsigned char jtagid;
// Generic Commands
// Generic Commands
@@
-93,6
+96,7
@@
extern int savedtclk;
#define JTAG_IR_SHIFT 0x80
#define JTAG_DR_SHIFT 0x81
#define JTAG_RESETTAP 0x82
#define JTAG_IR_SHIFT 0x80
#define JTAG_DR_SHIFT 0x81
#define JTAG_RESETTAP 0x82
+#define JTAG_RESETTARGET 0x83
#define JTAG_DR_SHIFT20 0x91
#define MSB 0
#define JTAG_DR_SHIFT20 0x91
#define MSB 0
@@
-100,8
+104,24
@@
extern int savedtclk;
#define NOEND 2
#define NORETIDLE 4
#define NOEND 2
#define NORETIDLE 4
-
//JTAG430 commands
//JTAG430 commands
-//#include "jtag430.h"
+#define Exit2_DR 0x0
+#define Exit_DR 0x1
+#define Shift_DR 0x2
+#define Pause_DR 0x3
+#define Select_IR 0x4
+#define Update_DR 0x5
+#define Capture_DR 0x6
+#define Select_DR 0x7
+#define Exit2_IR 0x8
+#define Exit_IR 0x9
+#define Shift_IR 0xa
+#define Pause_IR 0xb
+#define RunTest_Idle 0xc
+#define Update_IR 0xd
+#define Capture_IR 0xe
+#define Test_Reset 0xf
+
+extern app_t const jtag_app;
#endif
#endif