aboutsummaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.h
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2023-05-06 22:17:36 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2023-05-18 10:16:12 +0000
commitfb34eeb442fe15593161e3254abd790077bc6e05 (patch)
tree88d1eef8e9f14fcbbf942cc8e823624fb3db7809 /src/target/arm_adi_v5.h
parent5308bd991ca63e56c272af47ad6dacf7e4c75569 (diff)
downloadriscv-openocd-fb34eeb442fe15593161e3254abd790077bc6e05.zip
riscv-openocd-fb34eeb442fe15593161e3254abd790077bc6e05.tar.gz
riscv-openocd-fb34eeb442fe15593161e3254abd790077bc6e05.tar.bz2
target: arm_adi_v5: move in include file the declaration of dap_ops
The struct containing SWD and JTAG operations are declared as extern in the C file. Mode them in include file arm_adi_v5.h to silent 'sparse' error for global variable definition without declaration in an include file. Change-Id: I59088512c052d5a120c38404a882ed512a68ca02 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7675 Tested-by: jenkins
Diffstat (limited to 'src/target/arm_adi_v5.h')
-rw-r--r--src/target/arm_adi_v5.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h
index 3eddbc0..90d28bc 100644
--- a/src/target/arm_adi_v5.h
+++ b/src/target/arm_adi_v5.h
@@ -455,6 +455,9 @@ enum ap_type {
AP_TYPE_AHB5H_AP = AP_REG_IDR_VALUE(ARM_ID, AP_REG_IDR_CLASS_MEM_AP, 8), /* AHB5 with enhanced HPROT Memory-AP */
};
+extern const struct dap_ops jtag_dp_ops;
+extern const struct dap_ops swd_dap_ops;
+
/* Check the ap->cfg_reg Long Address field (bit 1)
*
* 0b0: The AP only supports physical addresses 32 bits or smaller