diff options
author | Mathias K <kesmtp@freenet.de> | 2012-01-12 13:32:03 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-01-12 22:29:46 +0000 |
commit | 37b575367be2702346c3188c686ac944a85c78e3 (patch) | |
tree | 08d4d68e8098c082e92e85e255e335b2076e2ccf /src/jtag/stlink/stlink_layout.h | |
parent | c2c4f440afb7695c2c1bc3f2d4b925de3c035212 (diff) |
stlink: add read/write 8bit memory
This patch add layout api funtions and implementation
to read/write 8bit memory.
Change-Id: I8d145eb07e5afa9ce1830578e57d80a80d21e7dc
Signed-off-by: Mathias K <kesmtp@freenet.de>
Reviewed-on: http://openocd.zylin.com/366
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/jtag/stlink/stlink_layout.h')
-rw-r--r-- | src/jtag/stlink/stlink_layout.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/jtag/stlink/stlink_layout.h b/src/jtag/stlink/stlink_layout.h index 46517a78..bf1e2c68 100644 --- a/src/jtag/stlink/stlink_layout.h +++ b/src/jtag/stlink/stlink_layout.h @@ -48,11 +48,17 @@ struct stlink_layout_api_s { /** */ int (*write_reg) (void *fd, int num, uint32_t val); /** */ + int (*read_mem8) (void *handle, uint32_t addr, uint16_t len, + uint8_t *buffer); + /** */ + int (*write_mem8) (void *handle, uint32_t addr, uint16_t len, + const uint8_t *buffer); + /** */ int (*read_mem32) (void *handle, uint32_t addr, uint16_t len, uint32_t *buffer); /** */ int (*write_mem32) (void *handle, uint32_t addr, uint16_t len, - uint32_t *buffer); + const uint32_t *buffer); /** */ int (*idcode) (void *fd, uint32_t *idcode); /** */ |