Skip to content

Commit

Permalink
hosted/jlink: add lpc-link 2 to hw type map
Browse files Browse the repository at this point in the history
  • Loading branch information
perigoso committed Jul 28, 2023
1 parent 4b071e6 commit e3e4de0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platforms/hosted/jlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ static char *jlink_hw_type_to_string(const uint8_t hw_type)
return "Flasher";
case JLINK_HARDWARE_VERSION_TYPE_JLINKPRO:
return "J-Link Pro";
case JLINK_HARDWARE_VERSION_TYPE_LPCLINK2:
return "LPC-Link2";
default:
return "Unknown";
}
Expand Down
1 change: 1 addition & 0 deletions src/platforms/hosted/jlink_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
#define JLINK_HARDWARE_VERSION_TYPE_JTRACE 1U
#define JLINK_HARDWARE_VERSION_TYPE_FLASHER 2U
#define JLINK_HARDWARE_VERSION_TYPE_JLINKPRO 3U
#define JLINK_HARDWARE_VERSION_TYPE_LPCLINK2 18U

/* J-Link capabilities - JLINK_CMD_INFO_GET_PROBE_CAPABILITIES
*
Expand Down

0 comments on commit e3e4de0

Please sign in to comment.