aboutsummaryrefslogtreecommitdiff
path: root/src/target/armv7m.h
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-05-11 09:39:58 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2012-05-14 09:38:59 +0000
commitec5e4bae251e01d2b7681e370a6c5e82a81e5962 (patch)
treee1afef97b527c1807e4bc53ed4b0194527f28a96 /src/target/armv7m.h
parentf9ea791e9b89bed91200f27202f9a95dd4e8640b (diff)
stlink: add armv7m stlink handling
This enables us to better handle some of the low level functions that the stlink does not support. It also enables us to share a few more of the standard cortex_m3 functions if necessary. Change-Id: I7a2c57450122012ec189245d8879d8967913e00e Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/637 Tested-by: jenkins
Diffstat (limited to 'src/target/armv7m.h')
-rw-r--r--src/target/armv7m.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/armv7m.h b/src/target/armv7m.h
index 6002b571..bcf0ee1a 100644
--- a/src/target/armv7m.h
+++ b/src/target/armv7m.h
@@ -171,9 +171,11 @@ struct armv7m_common {
struct adiv5_dap dap;
int fp_feature;
-
uint32_t demcr;
+ /* stlink is a high level adapter, does not support all functions */
+ bool stlink;
+
/* Direct processor core register read and writes */
int (*load_core_reg_u32)(struct target *target,
enum armv7m_regtype type, uint32_t num, uint32_t *value);