X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fstellaris.c;h=bbe4aef92b308401d9d2edd2492590a3657aa18a;hp=910d047dc01e11ecf6ffe55d0ffd13af9b1d0e4a;hb=e84849f5ed7416c758914bea88a31827259c4f5b;hpb=98723c4ecdbe06f90c66f3abec27b792c3b38e34 diff --git a/src/flash/stellaris.c b/src/flash/stellaris.c index 910d047dc0..bbe4aef92b 100644 --- a/src/flash/stellaris.c +++ b/src/flash/stellaris.c @@ -31,6 +31,7 @@ #include "stellaris.h" #include "armv7m.h" #include "binarybuffer.h" +#include "algorithm.h" #define DID0_VER(did0) ((did0 >> 28)&0x07) @@ -1138,7 +1139,7 @@ COMMAND_HANDLER(stellaris_handle_mass_erase_command) } struct flash_bank *bank; - int retval = flash_command_get_bank_by_num(cmd_ctx, args[0], &bank); + int retval = CALL_COMMAND_HANDLER(flash_command_get_bank_by_num, 0, &bank); if (ERROR_OK != retval) return retval; @@ -1162,7 +1163,7 @@ COMMAND_HANDLER(stellaris_handle_mass_erase_command) static int stellaris_register_commands(struct command_context *cmd_ctx) { - command_t *stm32x_cmd = register_command(cmd_ctx, NULL, "stellaris", + struct command *stm32x_cmd = register_command(cmd_ctx, NULL, "stellaris", NULL, COMMAND_ANY, "stellaris flash specific commands"); register_command(cmd_ctx, stm32x_cmd, "mass_erase",