2 \author Travis Goodspeed and Mark Rages
3 \brief Spy-Bi-Wire Stuff
10 extern app_t const sbw_app;
18 //IO Pins; these are for EZ430, not GoodFET/UIF
22 //This should be universal, move to jtag.h
23 #define TCKTOCK CLRTCK,SETTCK
25 //If SBW is defined, rewrite JTAG functions to be SBW.
27 #define jtagsetup sbwsetup
30 extern int tms, tdi, tdo;
40 #define TCKTOCK clock_sbw()
42 #define SETMOSI SETTDI
44 #define CLRMOSI CLRTDI
53 //! Handle a SBW request.
54 void sbw_handler_fn(u8 app, u8 verb, u32 len);
56 //! Perform a SBW bit transaction.
58 //! Set the TCLK line, performing a transaction.
64 #define SBWCLK() do { \
71 #define SETSBWIO(x) do { \
78 #define RESTORETCLK do { \
86 #define SETTCLK do { \
91 #define CLRTCLK do { \
97 //Do nothing for this.