2 \author Travis Goodspeed and Mark Rages
3 \brief Spy-Bi-Wire Stuff
13 //IO Pins; these are for EZ430, not GoodFET/UIF
17 //This should be universal, move to jtag.h
18 #define TCKTOCK CLRTCK,SETTCK
20 //If SBW is defined, rewrite JTAG functions to be SBW.
22 #define jtagsetup sbwsetup
25 extern int tms, tdi, tdo;
30 #define TCKTOCK clock_sbw()
31 #define SETMOSI SETTDI
32 #define CLRMOSI CLRTDI
40 //! Handle a SBW request.
41 void sbwhandle(u8 app, u8 verb, u8 len);
43 //! Perform a SBW bit transaction.
45 //! Set the TCLK line, performing a transaction.
51 #define SBWCLK() do { \
58 #define SETSBWIO(x) do { \
65 #define RESTORETCLK do { \
73 #define SETTCLK do { \
78 #define CLRTCLK do { \
84 //Do nothing for this.