X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fstlink%2Fstlink_layout.h;h=8d2a98ac169c97da05e880c36c3fb21fc04ccd97;hp=caae8284e2577bd20641171a0779d96af7f38980;hb=a047d87196e829b927b4dc5281981d011fb4c586;hpb=6bbb1479b316890519da8aa93f115501711d8656 diff --git a/src/jtag/stlink/stlink_layout.h b/src/jtag/stlink/stlink_layout.h index caae8284e2..8d2a98ac16 100644 --- a/src/jtag/stlink/stlink_layout.h +++ b/src/jtag/stlink/stlink_layout.h @@ -17,6 +17,7 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ + #ifndef _STLINK_LAYOUT_H_ #define _STLINK_LAYOUT_H_ @@ -36,6 +37,8 @@ struct stlink_layout_api_s { /** */ int (*reset) (void *fd); /** */ + int (*assert_srst) (void *fd, int srst); + /** */ int (*run) (void *fd); /** */ int (*halt) (void *fd); @@ -55,10 +58,12 @@ struct stlink_layout_api_s { const uint8_t *buffer); /** */ int (*read_mem32) (void *handle, uint32_t addr, uint16_t len, - uint32_t *buffer); + uint8_t *buffer); /** */ int (*write_mem32) (void *handle, uint32_t addr, uint16_t len, - const uint32_t *buffer); + const uint8_t *buffer); + /** */ + int (*write_debug_reg) (void *handle, uint32_t addr, uint32_t val); /** */ int (*idcode) (void *fd, uint32_t *idcode); /** */ @@ -70,8 +75,6 @@ struct stlink_layout { /** */ char *name; /** */ - int type; - /** */ int (*open) (struct stlink_interface_s *stlink_if); /** */ int (*close) (struct stlink_interface_s *stlink_if);