* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
+
#ifndef _STLINK_LAYOUT_H_
#define _STLINK_LAYOUT_H_
struct stlink_interface_param_s;
/** */
-extern struct stlink_layout_api_s stlink_layout_api;
+extern struct stlink_layout_api_s stlink_usb_layout_api;
/** */
struct stlink_layout_api_s {
/** */
int (*reset) (void *fd);
/** */
+ int (*assert_srst) (void *fd, int srst);
+ /** */
int (*run) (void *fd);
/** */
int (*halt) (void *fd);
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);
/** */