Bringing back MSP430X2 JTAG. Not there yet.
[goodfet] / firmware / apps / jtag / jtag430x2.c
index 445bb10..685484e 100644 (file)
@@ -31,6 +31,17 @@ app_t const jtag430x2_app = {
 };
 
 
+//! Grab the core ID.
+unsigned int jtag430_coreid(){
+  jtag_ir_shift8(IR_COREIP_ID);
+  return jtag_dr_shift16(0);
+}
+
+//! Grab the device ID.
+unsigned long jtag430_deviceid(){
+  jtag_ir_shift8(IR_DEVICE_ID);
+  return jtag_dr_shift20(0);
+}
 
 
 //! Write data to address