projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Repaired MSP430 and MSP430X support.
[goodfet]
/
firmware
/
include
/
jtag.h
diff --git
a/firmware/include/jtag.h
b/firmware/include/jtag.h
index
352e044
..
5735a95
100644
(file)
--- a/
firmware/include/jtag.h
+++ b/
firmware/include/jtag.h
@@
-6,10
+6,9
@@
#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
// Generic Commands
// Generic Commands
@@
-38,7
+37,7
@@
void jtag_goto_shift_ir();
//! Go to SHIFT_DR
void jtag_goto_shift_dr();
//! TAP RESET
//! Go to SHIFT_DR
void jtag_goto_shift_dr();
//! TAP RESET
-void jtag_reset
_to_runtest_idle
();
+void jtag_reset
tap
();
//Pins. Both SPI and JTAG names are acceptable.
//#define SS BIT0
//Pins. Both SPI and JTAG names are acceptable.
//#define SS BIT0
@@
-92,6
+91,8
@@
extern int savedtclk;
//JTAG commands
#define JTAG_IR_SHIFT 0x80
#define JTAG_DR_SHIFT 0x81
//JTAG commands
#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
@@
-99,8
+100,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