Added variable serial number (now in DAP as well)

This commit is contained in:
Alex Taradov 2017-05-09 22:02:15 -07:00
parent e35692e86a
commit 122434c371
2 changed files with 2 additions and 2 deletions

View File

@ -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 ---------------------------------------------------------*/

View File

@ -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 ---------------------------------------------------------*/