diff options
author | Hsiangkai Wang <hsiangkai@gmail.com> | 2013-08-27 16:02:56 +0800 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2013-09-13 19:36:21 +0000 |
commit | 4be6e268254c7b82bd32d25af903c2d0812dce07 (patch) | |
tree | afecb8f70c8fe8ce839161a29f4ade1e491b6339 /src/target/nds32_aice.c | |
parent | afb7cb7398fc0b0381df291ec5946e7a8c00d5fa (diff) | |
download | riscv-openocd-4be6e268254c7b82bd32d25af903c2d0812dce07.zip riscv-openocd-4be6e268254c7b82bd32d25af903c2d0812dce07.tar.gz riscv-openocd-4be6e268254c7b82bd32d25af903c2d0812dce07.tar.bz2 |
aice: support batch commands
Change-Id: I6846362d98374c93f45f339fb1279fc71721e696
Signed-off-by: Hsiangkai Wang <hsiangkai@gmail.com>
Reviewed-on: http://openocd.zylin.com/1584
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/nds32_aice.c')
-rw-r--r-- | src/target/nds32_aice.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/target/nds32_aice.c b/src/target/nds32_aice.c index 78ae8c2..b3a830b 100644 --- a/src/target/nds32_aice.c +++ b/src/target/nds32_aice.c @@ -95,14 +95,15 @@ int aice_program_edm(struct aice_port_s *aice, char *command_sequence) return aice->port->api->program_edm(command_sequence); } -int aice_pack_command(struct aice_port_s *aice, bool enable_pack_command) +int aice_set_command_mode(struct aice_port_s *aice, + enum aice_command_mode command_mode) { - if (aice->port->api->pack_command == NULL) { + if (aice->port->api->set_command_mode == NULL) { LOG_WARNING("Not implemented: %s", __func__); return ERROR_FAIL; } - return aice->port->api->pack_command(enable_pack_command); + return aice->port->api->set_command_mode(command_mode); } int aice_execute(struct aice_port_s *aice, uint32_t *instructions, |