\brief JTAG handler functions.
*/
+#ifndef JTAG430_H
+#define JTAG430_H
+#include "app.h"
#include "jtag.h"
+#define JTAG430 0x16
+
extern unsigned int drwidth;
#define MSP430MODE 0
// 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();
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
#define JTAG430_ERASEINFO 0xE8
#define JTAG430_COREIP_ID 0xF0
#define JTAG430_DEVICE_ID 0xF1
+
+extern app_t const jtag430_app;
+
+#endif // JTAG430_H