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>
This commit is contained in:
parent
5d1cabb142
commit
2d8c7c510b
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue