PC-STLINKV2/Libftdi: Better version string.

This commit is contained in:
Uwe Bonnes 2019-08-20 17:56:25 +02:00
parent fa27649f87
commit 5fbb3a44fd
3 changed files with 7 additions and 0 deletions

View File

@ -124,7 +124,12 @@ int command_process(target *t, char *cmd)
bool cmd_version(void)
{
#if defined PC_HOSTED
gdb_outf("Black Magic Probe, PC-Hosted for " PLATFORM_IDENT
", Version " FIRMWARE_VERSION "\n");
#else
gdb_outf("Black Magic Probe (Firmware " FIRMWARE_VERSION ") (Hardware Version %d)\n", platform_hwversion());
#endif
gdb_out("Copyright (C) 2015 Black Sphere Technologies Ltd.\n");
gdb_out("License GPLv3+: GNU GPL version 3 or later "
"<http://gnu.org/licenses/gpl.html>\n\n");

View File

@ -38,6 +38,7 @@
#define PLATFORM_HAS_DEBUG
#define PLATFORM_IDENT "FTDI/MPSSE"
#define SET_RUN_STATE(state)
#define SET_IDLE_STATE(state)
#define SET_ERROR_STATE(state)

View File

@ -35,6 +35,7 @@
#define PLATFORM_HAS_DEBUG
#define PLATFORM_IDENT "StlinkV2/3"
#define SET_RUN_STATE(state)
#define SET_IDLE_STATE(state)
//#define SET_ERROR_STATE(state)