summaryrefslogtreecommitdiff
path: root/src/target/mips_ejtag.h
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-03-18 09:35:45 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-03-18 09:35:45 +0000
commitae1c64706a6fa421b60884e23561f39016950f54 (patch)
tree35f3684fe4051e69074cb2ac8b743a8f1fd9793e /src/target/mips_ejtag.h
parentb48a94f05da3a887f1978da01db77b79513d4aa9 (diff)
downloadopenocd+libswd-ae1c64706a6fa421b60884e23561f39016950f54.tar.gz
openocd+libswd-ae1c64706a6fa421b60884e23561f39016950f54.tar.bz2
openocd+libswd-ae1c64706a6fa421b60884e23561f39016950f54.tar.xz
openocd+libswd-ae1c64706a6fa421b60884e23561f39016950f54.zip
PIC32MX: add unlock cmd
'unlock' performs a full unlock/erase of the device, removing any code protection. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/target/mips_ejtag.h')
-rw-r--r--src/target/mips_ejtag.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/mips_ejtag.h b/src/target/mips_ejtag.h
index 164edd01..f302a706 100644
--- a/src/target/mips_ejtag.h
+++ b/src/target/mips_ejtag.h
@@ -48,6 +48,8 @@
/* microchip specific cmds */
#define MCHP_ASERT_RST 0xd1
#define MCHP_DE_ASSERT_RST 0xd0
+#define MCHP_ERASE 0xfc
+#define MCHP_STATUS 0x00
/* ejtag control register bits ECR */
#define EJTAG_CTRL_TOF (1 << 1)