PC-STLINKV2/Libftdi: Better version string.
This commit is contained in:
parent
fa27649f87
commit
5fbb3a44fd
@ -124,7 +124,12 @@ int command_process(target *t, char *cmd)
|
|||||||
|
|
||||||
bool cmd_version(void)
|
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());
|
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("Copyright (C) 2015 Black Sphere Technologies Ltd.\n");
|
||||||
gdb_out("License GPLv3+: GNU GPL version 3 or later "
|
gdb_out("License GPLv3+: GNU GPL version 3 or later "
|
||||||
"<http://gnu.org/licenses/gpl.html>\n\n");
|
"<http://gnu.org/licenses/gpl.html>\n\n");
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
#define PLATFORM_HAS_DEBUG
|
#define PLATFORM_HAS_DEBUG
|
||||||
|
|
||||||
|
#define PLATFORM_IDENT "FTDI/MPSSE"
|
||||||
#define SET_RUN_STATE(state)
|
#define SET_RUN_STATE(state)
|
||||||
#define SET_IDLE_STATE(state)
|
#define SET_IDLE_STATE(state)
|
||||||
#define SET_ERROR_STATE(state)
|
#define SET_ERROR_STATE(state)
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
#define PLATFORM_HAS_DEBUG
|
#define PLATFORM_HAS_DEBUG
|
||||||
|
|
||||||
|
#define PLATFORM_IDENT "StlinkV2/3"
|
||||||
#define SET_RUN_STATE(state)
|
#define SET_RUN_STATE(state)
|
||||||
#define SET_IDLE_STATE(state)
|
#define SET_IDLE_STATE(state)
|
||||||
//#define SET_ERROR_STATE(state)
|
//#define SET_ERROR_STATE(state)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user