tap_set_state(tap_get_end_state());
}
-static void gw16012_path_move(pathmove_command_t *cmd)
+static void gw16012_path_move(struct pathmove_command *cmd)
{
int num_states = cmd->num_states;
int state_count;
static int gw16012_execute_queue(void)
{
- jtag_command_t *cmd = jtag_command_queue; /* currently processed command */
+ struct jtag_command *cmd = jtag_command_queue; /* currently processed command */
int scan_size;
enum scan_type type;
uint8_t *buffer;
COMMAND_HANDLER(gw16012_handle_parport_port_command)
{
- if (argc == 1)
+ if (CMD_ARGC == 1)
{
/* only if the port wasn't overwritten by cmdline */
if (gw16012_port == 0)
{
- COMMAND_PARSE_NUMBER(u16, args[0], gw16012_port);
+ COMMAND_PARSE_NUMBER(u16, CMD_ARGV[0], gw16012_port);
}
else
{
}
}
- command_print(cmd_ctx, "parport port = %u", gw16012_port);
+ command_print(CMD_CTX, "parport port = %u", gw16012_port);
return ERROR_OK;
}
-static int gw16012_register_commands(struct command_context_s *cmd_ctx)
+static int gw16012_register_commands(struct command_context *cmd_ctx)
{
- register_command(cmd_ctx, NULL, "parport_port",
+ COMMAND_REGISTER(cmd_ctx, NULL, "parport_port",
gw16012_handle_parport_port_command, COMMAND_CONFIG,
NULL);