summaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.h
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 13:45:50 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 13:45:50 +0000
commitf7d3fdb19573977224c911dd9bd5594fee30b231 (patch)
treeefd5eb501e5796b72ef80a1f5c3bbde229e8a88b /src/target/arm_adi_v5.h
parentd86100261252805215282b17d214c48021ef7f79 (diff)
downloadopenocd_libswd-f7d3fdb19573977224c911dd9bd5594fee30b231.tar.gz
openocd_libswd-f7d3fdb19573977224c911dd9bd5594fee30b231.tar.bz2
openocd_libswd-f7d3fdb19573977224c911dd9bd5594fee30b231.tar.xz
openocd_libswd-f7d3fdb19573977224c911dd9bd5594fee30b231.zip
- add support for different TAR autotincrement sizes as per ARM ADI spec.
- set TAR size to 12 bits for Cortex-M3. - Original patch submitted by Magnus Lundin [lundin@mlu.mine.nu]. git-svn-id: svn://svn.berlios.de/openocd/trunk@2051 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/arm_adi_v5.h')
-rw-r--r--src/target/arm_adi_v5.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h
index 06fe3287..313598b1 100644
--- a/src/target/arm_adi_v5.h
+++ b/src/target/arm_adi_v5.h
@@ -99,8 +99,17 @@ typedef struct swjdp_common_s
u8 ack;
/* extra tck clocks for memory bus access */
u32 memaccess_tck;
+ /* Size of TAR autoincrement block, ARM ADI Specification requires at least 10 bits */
+ u32 tar_autoincr_block;
+
} swjdp_common_t;
+/* Accessor function for currently selected DAP-AP number */
+static inline u8 dap_ap_get_select(swjdp_common_t *swjdp)
+{
+ return (u8)( swjdp ->apsel >> 24);
+}
+
/* Internal functions used in the module, partial transactions, use with caution */
extern int dap_dp_write_reg(swjdp_common_t *swjdp, u32 value, u8 reg_addr);
/* extern int swjdp_write_apacc(swjdp_common_t *swjdp, u32 value, u8 reg_addr); */