LOG_DEBUG("trst: %i, srst: %i", trst, srst);
/* Signals are active low */
- if (trst == 0)
+ if (srst == 0)
{
- jlink_simple_command(EMU_CMD_HW_TRST1);
+ jlink_simple_command(EMU_CMD_HW_RESET1);
}
- else if (trst == 1)
+ else if (srst == 1)
{
- jlink_simple_command(EMU_CMD_HW_TRST0);
+ jlink_simple_command(EMU_CMD_HW_RESET0);
}
- if (srst == 0)
+ if (trst == 0)
{
- jlink_simple_command(EMU_CMD_HW_RESET1);
+ jlink_simple_command(EMU_CMD_HW_TRST1);
}
- else if (srst == 1)
+ else if (trst == 1)
{
- jlink_simple_command(EMU_CMD_HW_RESET0);
+ jlink_simple_command(EMU_CMD_HW_TRST0);
}
}