X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=firmware%2Finclude%2Fjtag.h;h=2d09c2c19bab5dc88a74b01834eed65415afc686;hb=875dc40329fd39cf956d5e0361f7350a01c240a2;hp=352e0442092b39778ba1188876f39d339cacbc59;hpb=386bb6b2c16f5d729a49e8eb8f42bbfad6a42d10;p=goodfet diff --git a/firmware/include/jtag.h b/firmware/include/jtag.h index 352e044..2d09c2c 100644 --- a/firmware/include/jtag.h +++ b/firmware/include/jtag.h @@ -38,7 +38,7 @@ void jtag_goto_shift_ir(); //! Go to SHIFT_DR void jtag_goto_shift_dr(); //! TAP RESET -void jtag_reset_to_runtest_idle(); +void jtag_resettap(); //Pins. Both SPI and JTAG names are acceptable. //#define SS BIT0 @@ -92,6 +92,8 @@ extern int savedtclk; //JTAG commands #define JTAG_IR_SHIFT 0x80 #define JTAG_DR_SHIFT 0x81 +#define JTAG_RESETTAP 0x82 +#define JTAG_RESETTARGET 0x83 #define JTAG_DR_SHIFT20 0x91 #define MSB 0 @@ -102,5 +104,21 @@ extern int savedtclk; //JTAG430 commands //#include "jtag430.h" - +#define Exit2_DR 0x0 +#define Exit_DR 0x1 +#define Shift_DR 0x2 +#define Pause_DR 0x3 +#define Select_IR 0x4 +#define Update_DR 0x5 +#define Capture_DR 0x6 +#define Select_DR 0x7 +#define Exit2_IR 0x8 +#define Exit_IR 0x9 +#define Shift_IR 0xa +#define Pause_IR 0xb +#define RunTest_Idle 0xc +#define Update_IR 0xd +#define Capture_IR 0xe +#define Test_Reset 0xf + #endif