From 2d8c7c510be09188b6c5446264cd8fcaa9c1e75a Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Thu, 19 Apr 2012 15:46:47 +0100 Subject: [PATCH] stlink: export write_debug_reg MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/jtag/drivers/stlink_usb.c | 2 ++ src/jtag/stlink/stlink_layout.h | 2 ++ 2 files changed, 4 insertions(+) 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); -- 2.39.5