X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fjtag430.h;h=6cff0b79c466c3df1fe6abad0162eeb56983f428;hp=91c4ebab07bec2f24987d1aa82b9238e47692c6e;hb=f3480afd0970eb232b17070d8596e5d09aef2c7e;hpb=5fb0341d348e101b30794945a6c91546e25e8e7b diff --git a/firmware/include/jtag430.h b/firmware/include/jtag430.h index 91c4eba..6cff0b7 100644 --- a/firmware/include/jtag430.h +++ b/firmware/include/jtag430.h @@ -9,7 +9,7 @@ #include "app.h" #include "jtag.h" -#define JTAG430 0x11 +#define JTAG430 0x16 extern unsigned int drwidth; @@ -20,8 +20,10 @@ extern unsigned int jtag430mode; // JTAG430 Commands -//! Start JTAG, unique to the '430. +//! Start JTAG, unique to the '430. Deprecated. void jtag430_start(); +//! Same thing, but also for '430X2. +unsigned char jtag430x2_start(); //! Reset the TAP state machine, check the fuse. void jtag430_resettap(); @@ -43,6 +45,8 @@ void jtag430_setinstrfetch(); void jtag430_setpc(unsigned int adr); //! Write data to address. void jtag430_writeflash(unsigned int adr, unsigned int data); +//! Shift an address width of data +uint32_t jtag430_shift_addr( uint32_t addr ); //16-bit MSP430 JTAG commands, bit-swapped