X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fnds32_aice.c;fp=src%2Ftarget%2Fnds32_aice.c;h=b3a830b38ecdd785f67bff0af192d589eeeaa5b4;hb=4be6e268254c7b82bd32d25af903c2d0812dce07;hp=78ae8c2a5e733d5e21e5b15caa62616421fb166d;hpb=afb7cb7398fc0b0381df291ec5946e7a8c00d5fa;p=openocd.git diff --git a/src/target/nds32_aice.c b/src/target/nds32_aice.c index 78ae8c2a5e..b3a830b38e 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,