summaryrefslogtreecommitdiff
path: root/src/target/armv7m.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-23 08:17:01 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-24 21:37:36 -0800
commit66ee303456910f684244a20a0ac2e958d40b78cb (patch)
tree3a5f06b0ee9e3978ebc9d836aac622b752e251ad /src/target/armv7m.h
parent144e3678bd2d518388b6c2d7f3d2a912a9ac2abd (diff)
downloadopenocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.tar.gz
openocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.tar.bz2
openocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.tar.xz
openocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.zip
remove target_type register_command callback
Uses chaining of command_registration structures to eliminate all target_type register_callback routines. Exports the command_handler registration arrays for those target types that are used by others.
Diffstat (limited to 'src/target/armv7m.h')
-rw-r--r--src/target/armv7m.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/armv7m.h b/src/target/armv7m.h
index 9dd4ddbb..7299bdf9 100644
--- a/src/target/armv7m.h
+++ b/src/target/armv7m.h
@@ -143,7 +143,6 @@ int armv7m_arch_state(struct target *target);
int armv7m_get_gdb_reg_list(struct target *target,
struct reg **reg_list[], int *reg_list_size);
-int armv7m_register_commands(struct command_context *cmd_ctx);
int armv7m_init_arch_info(struct target *target, struct armv7m_common *armv7m);
int armv7m_run_algorithm(struct target *target,
@@ -161,6 +160,8 @@ int armv7m_checksum_memory(struct target *target,
int armv7m_blank_check_memory(struct target *target,
uint32_t address, uint32_t count, uint32_t* blank);
+extern const struct command_registration armv7m_command_handlers[];
+
/* Thumb mode instructions
*/