From: Spencer Oliver Date: Thu, 19 Apr 2012 14:46:47 +0000 (+0100) Subject: stlink: export write_debug_reg X-Git-Tag: v0.6.0-rc1~118 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d8c7c510be09188b6c5446264cd8fcaa9c1e75a;p=openocd stlink: export write_debug_reg Change-Id: I3944911d4a71dba4af48470ceb3e4850784a0e7d Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/580 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Freddie Chopin --- diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c index d40436a0..4f9d1327 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 e0da75c7..905105a0 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);