summaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-10 05:32:04 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 10:51:46 -0800
commitd02fee197f62331e36e9de110040f0170341c3e8 (patch)
treee9145b9281376db79b0b81cd3c0ad14078e49ff4 /src/target/arm_adi_v5.h
parent63a26b421b1731df5826a157ea633b9d2c02aaee (diff)
downloadopenocd+libswd-d02fee197f62331e36e9de110040f0170341c3e8.tar.gz
openocd+libswd-d02fee197f62331e36e9de110040f0170341c3e8.tar.bz2
openocd+libswd-d02fee197f62331e36e9de110040f0170341c3e8.tar.xz
openocd+libswd-d02fee197f62331e36e9de110040f0170341c3e8.zip
arm_adi,armv7[am]: use COMMAND_HELPER for helpers
Rewrites the dap_* command helpers to use the COMMAND_HELPER paradigm. Uses CALL_COMMAND_HELPER to hide inherited calling conventions.
Diffstat (limited to 'src/target/arm_adi_v5.h')
-rw-r--r--src/target/arm_adi_v5.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h
index 442b45ca..90b4cbd0 100644
--- a/src/target/arm_adi_v5.h
+++ b/src/target/arm_adi_v5.h
@@ -158,13 +158,12 @@ int ahbap_debugport_init(swjdp_common_t *swjdp);
/* Commands for user dap access */
int dap_info_command(struct command_context_s *cmd_ctx,
swjdp_common_t *swjdp, int apsel);
-int dap_baseaddr_command(struct command_context_s *cmd_ctx,
- swjdp_common_t *swjdp, char **args, int argc);
-int dap_memaccess_command(struct command_context_s *cmd_ctx,
- swjdp_common_t *swjdp, char **args, int argc);
-int dap_apsel_command(struct command_context_s *cmd_ctx,
- swjdp_common_t *swjdp, char **args, int argc);
-int dap_apid_command(struct command_context_s *cmd_ctx,
- swjdp_common_t *swjdp, char **args, int argc);
+
+#define DAP_COMMAND_HANDLER(name) \
+ COMMAND_HELPER(name, swjdp_common_t *swjdp)
+DAP_COMMAND_HANDLER(dap_baseaddr_command);
+DAP_COMMAND_HANDLER(dap_memaccess_command);
+DAP_COMMAND_HANDLER(dap_apsel_command);
+DAP_COMMAND_HANDLER(dap_apid_command);
#endif