2 \author Travis Goodspeed and Mark Rages
3 \brief Spy-Bi-Wire Stuff
8 //IO Pins; these are for EZ430, not GoodFET/UIF
12 //This should be universal, move to jtag.h
13 #define TCKTOCK CLRTCK,SETTCK
15 //If SBW is defined, rewrite JTAG functions to be SBW.
17 #define jtagsetup sbwsetup
20 extern int tms, tdi, tdo;
25 #define TCKTOCK clock_sbw()
26 #define SETMOSI SETTDI
27 #define CLRMOSI CLRTDI
35 //! Handle a SBW request.
36 void sbwhandle(u8 app, u8 verb, u8 len);
38 //! Perform a SBW bit transaction.
40 //! Set the TCLK line, performing a transaction.
46 #define SBWCLK() do { \
53 #define SETSBWIO(x) do { \
60 #define RESTORETCLK do { \
68 #define SETTCLK do { \
73 #define CLRTCLK do { \
79 //Do nothing for this.