2 \author Travis Goodspeed and Mark Rages
3 \brief Spy-Bi-Wire Stuff
6 //IO Pins; these are for EZ430, not GoodFET/UIF
10 //This should be universal, move to jtag.h
11 #define TCKTOCK CLRTCK,SETTCK
13 //If SBW is defined, rewrite JTAG functions to be SBW.
15 #define jtagsetup sbwsetup
18 extern int tms, tdi, tdo;
23 #define TCKTOCK clock_sbw()
24 #define SETMOSI SETTDI
25 #define CLRMOSI CLRTDI
33 //! Handle a SBW request.
34 void sbwhandle(u8 app, u8 verb, u8 len);
36 //! Perform a SBW bit transaction.
38 //! Set the TCLK line, performing a transaction.
45 #define SBWCLK() do { \
52 #define SETSBWIO(x) do { \
59 #define RESTORETCLK do { \
67 #define SETTCLK do { \
72 #define CLRTCLK do { \
78 //Do nothing for this.