diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-04-19 15:46:47 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-04-30 13:04:54 +0000 |
commit | 2d8c7c510be09188b6c5446264cd8fcaa9c1e75a (patch) | |
tree | 11c41cbe18c0405df5d170178f3c11e430c0841a /src | |
parent | 5d1cabb1422f9b76afb665aecc2f0116174de1b0 (diff) | |
download | riscv-openocd-2d8c7c510be09188b6c5446264cd8fcaa9c1e75a.zip riscv-openocd-2d8c7c510be09188b6c5446264cd8fcaa9c1e75a.tar.gz riscv-openocd-2d8c7c510be09188b6c5446264cd8fcaa9c1e75a.tar.bz2 |
stlink: export write_debug_reg
Change-Id: I3944911d4a71dba4af48470ceb3e4850784a0e7d
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/580
Tested-by: jenkins
Reviewed-by: Mathias Küster <kesmtp@freenet.de>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/drivers/stlink_usb.c | 2 | ||||
-rw-r--r-- | src/jtag/stlink/stlink_layout.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c index d40436a..4f9d132 100644 --- a/src/jtag/drivers/stlink_usb.c +++ b/src/jtag/drivers/stlink_usb.c @@ -1272,4 +1272,6 @@ struct stlink_layout_api_s stlink_usb_layout_api = { .read_mem32 = stlink_usb_read_mem32, /** */ .write_mem32 = stlink_usb_write_mem32, + /** */ + .write_debug_reg = stlink_usb_write_debug_reg }; diff --git a/src/jtag/stlink/stlink_layout.h b/src/jtag/stlink/stlink_layout.h index e0da75c..905105a 100644 --- a/src/jtag/stlink/stlink_layout.h +++ b/src/jtag/stlink/stlink_layout.h @@ -63,6 +63,8 @@ struct stlink_layout_api_s { int (*write_mem32) (void *handle, uint32_t addr, uint16_t len, const uint8_t *buffer); /** */ + int (*write_debug_reg) (void *handle, uint32_t addr, uint32_t val); + /** */ int (*idcode) (void *fd, uint32_t *idcode); /** */ enum target_state (*state) (void *fd); |