projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some bits of Spy-Bi-Wire support, thanks to Mark Rages. (Not yet complete.)
[goodfet]
/
firmware
/
include
/
jtag.h
diff --git
a/firmware/include/jtag.h
b/firmware/include/jtag.h
index
1ef3b79
..
72c7a4f
100644
(file)
--- a/
firmware/include/jtag.h
+++ b/
firmware/include/jtag.h
@@
-104,6
+104,8
@@
extern int savedtclk;
#define SAVETCLK savedtclk=P5OUT&TCLK;
#define RESTORETCLK if(savedtclk) P5OUT|=TCLK; else P5OUT&=~TCLK
#define SAVETCLK savedtclk=P5OUT&TCLK;
#define RESTORETCLK if(savedtclk) P5OUT|=TCLK; else P5OUT&=~TCLK
+//Replace every "CLRTCK SETTCK" with this.
+#define TCKTOCK CLRTCK,SETTCK
//16-bit MSP430 JTAG commands, bit-swapped
#define IR_CNTRL_SIG_16BIT 0xC8 // 0x13
//16-bit MSP430 JTAG commands, bit-swapped
#define IR_CNTRL_SIG_16BIT 0xC8 // 0x13