stm32:cdcacm/usbdfu: Print version and build information in the product string
This commit is contained in:
parent
8415fc829b
commit
96ae3886ff
|
@ -35,7 +35,7 @@
|
||||||
#define INLINE_GPIO
|
#define INLINE_GPIO
|
||||||
#define CDCACM_PACKET_SIZE 64
|
#define CDCACM_PACKET_SIZE 64
|
||||||
#define PLATFORM_HAS_TRACESWO
|
#define PLATFORM_HAS_TRACESWO
|
||||||
#define BOARD_IDENT "Black Magic Probe (F4Discovery)"
|
#define BOARD_IDENT "Black Magic Probe (F4Discovery), (Firmware 1.5" VERSION_SUFFIX ", build " BUILDDATE ")"
|
||||||
#define DFU_IDENT "Black Magic Firmware Upgrade (F4Discovery"
|
#define DFU_IDENT "Black Magic Firmware Upgrade (F4Discovery"
|
||||||
|
|
||||||
extern usbd_device *usbdev;
|
extern usbd_device *usbdev;
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#define INLINE_GPIO
|
#define INLINE_GPIO
|
||||||
#define CDCACM_PACKET_SIZE 64
|
#define CDCACM_PACKET_SIZE 64
|
||||||
#define PLATFORM_HAS_TRACESWO
|
#define PLATFORM_HAS_TRACESWO
|
||||||
#define BOARD_IDENT "Black Magic Probe"
|
#define BOARD_IDENT "Black Magic Probe, (Firmware 1.5" VERSION_SUFFIX ", build " BUILDDATE ")"
|
||||||
#define DFU_IDENT "Black Magic Firmware Upgrade"
|
#define DFU_IDENT "Black Magic Firmware Upgrade"
|
||||||
|
|
||||||
extern usbd_device *usbdev;
|
extern usbd_device *usbdev;
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
#define INLINE_GPIO
|
#define INLINE_GPIO
|
||||||
#define CDCACM_PACKET_SIZE 64
|
#define CDCACM_PACKET_SIZE 64
|
||||||
#define BOARD_IDENT "Black Magic Probe (STLINK)"
|
#define BOARD_IDENT "Black Magic Probe (STLINK), (Firmware 1.5" VERSION_SUFFIX ", build " BUILDDATE ")"
|
||||||
#define DFU_IDENT "Black Magic Firmware Upgrade (STLINK)"
|
#define DFU_IDENT "Black Magic Firmware Upgrade (STLINK)"
|
||||||
|
|
||||||
extern usbd_device *usbdev;
|
extern usbd_device *usbdev;
|
||||||
|
|
|
@ -191,13 +191,13 @@ static char serial_no[9];
|
||||||
static const char *usb_strings[] = {
|
static const char *usb_strings[] = {
|
||||||
"Black Sphere Technologies",
|
"Black Sphere Technologies",
|
||||||
#if defined(BLACKMAGIC)
|
#if defined(BLACKMAGIC)
|
||||||
"Black Magic Probe (Upgrade)",
|
"Black Magic Probe (Upgrade), (Firmware 1.5" VERSION_SUFFIX ", build " BUILDDATE ")",
|
||||||
#elif defined(DISCOVERY_STLINK)
|
#elif defined(DISCOVERY_STLINK)
|
||||||
"Black Magic (Upgrade) for STLink/Discovery",
|
"Black Magic (Upgrade) for STLink/Discovery, (Firmware 1.5" VERSION_SUFFIX ", build " BUILDDATE ")",
|
||||||
#elif defined(STM32_CAN)
|
#elif defined(STM32_CAN)
|
||||||
"Black Magic (Upgrade) for STM32_CAN",
|
"Black Magic (Upgrade) for STM32_CAN, (Firmware 1.5" VERSION_SUFFIX ", build " BUILDDATE ")",
|
||||||
#elif defined(F4DISCOVERY)
|
#elif defined(F4DISCOVERY)
|
||||||
"Black Magic (Upgrade) for F4Discovery",
|
"Black Magic (Upgrade) for F4Discovery, (Firmware 1.5" VERSION_SUFFIX ", build " BUILDDATE ")",
|
||||||
#else
|
#else
|
||||||
#warning "Unhandled board"
|
#warning "Unhandled board"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
extern usbd_device *usbdev;
|
extern usbd_device *usbdev;
|
||||||
#define CDCACM_GDB_ENDPOINT 1
|
#define CDCACM_GDB_ENDPOINT 1
|
||||||
#define CDCACM_UART_ENDPOINT 3
|
#define CDCACM_UART_ENDPOINT 3
|
||||||
#define BOARD_IDENT "Black Magic Probe (STM32_CAN)"
|
#define BOARD_IDENT "Black Magic Probe (STM32_CAN), (Firmware 1.5" VERSION_SUFFIX ", build " BUILDDATE ")"
|
||||||
#define DFU_IDENT "Black Magic Firmware Upgrade (STM32_CAN)"
|
#define DFU_IDENT "Black Magic Firmware Upgrade (STM32_CAN)"
|
||||||
|
|
||||||
/* Important pin mappings for STM32 implementation:
|
/* Important pin mappings for STM32 implementation:
|
||||||
|
|
Loading…
Reference in New Issue