Added variable serial number (now in DAP as well)
This commit is contained in:
parent
e35692e86a
commit
122434c371
@ -62,7 +62,7 @@
|
||||
// DAP_CONFIG_PRODUCT_STR must contain "CMSIS-DAP" to be compatible with the standard
|
||||
#define DAP_CONFIG_VENDOR_STR "Alex Taradov"
|
||||
#define DAP_CONFIG_PRODUCT_STR "Generic CMSIS-DAP Adapter"
|
||||
#define DAP_CONFIG_SER_NUM_STR "123456"
|
||||
#define DAP_CONFIG_SER_NUM_STR usb_serial_number
|
||||
#define DAP_CONFIG_FW_VER_STR "v0.1"
|
||||
#define DAP_CONFIG_DEVICE_VENDOR_STR NULL
|
||||
#define DAP_CONFIG_DEVICE_NAME_STR NULL
|
||||
@ -78,6 +78,7 @@
|
||||
|
||||
/*- Prototypes --------------------------------------------------------------*/
|
||||
extern void app_led_set_state(int state);
|
||||
extern char usb_serial_number[16];
|
||||
|
||||
/*- Implementations ---------------------------------------------------------*/
|
||||
|
||||
|
||||
@ -64,7 +64,6 @@
|
||||
/*- Variables ---------------------------------------------------------------*/
|
||||
static alignas(4) uint8_t app_request_buffer[DAP_CONFIG_PACKET_SIZE];
|
||||
static alignas(4) uint8_t app_response_buffer[DAP_CONFIG_PACKET_SIZE];
|
||||
extern char usb_serial_number[16];
|
||||
|
||||
/*- Implementations ---------------------------------------------------------*/
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user