|
|
|
|
@ -181,7 +181,15 @@ static const uint8_t vcom_string2[] = {
|
|
|
|
|
* 01234567890123456789012
|
|
|
|
|
* skip last two 'xx' char due to 'tinySA4_v1.3-n-gxxxxxxx'
|
|
|
|
|
*/
|
|
|
|
|
static const uint8_t vcom_string3[] = {
|
|
|
|
|
static const uint8_t vcom_string3[] =
|
|
|
|
|
{
|
|
|
|
|
#if 1
|
|
|
|
|
USB_DESC_BYTE(8), /* bLength. */
|
|
|
|
|
USB_DESC_BYTE(USB_DESCRIPTOR_STRING), /* bDescriptorType. */
|
|
|
|
|
'0' + CH_KERNEL_MAJOR, 0,
|
|
|
|
|
'0' + CH_KERNEL_MINOR, 0,
|
|
|
|
|
'0' + CH_KERNEL_PATCH, 0
|
|
|
|
|
#else
|
|
|
|
|
USB_DESC_BYTE(32), /* bLength. */
|
|
|
|
|
USB_DESC_BYTE(USB_DESCRIPTOR_STRING), /* bDescriptorType. */
|
|
|
|
|
VERSION[8], 0, /* 'v' */
|
|
|
|
|
@ -199,6 +207,7 @@ static const uint8_t vcom_string3[] = {
|
|
|
|
|
VERSION[20], 0, /* 'x' */
|
|
|
|
|
VERSION[21], 0, /* 'x' */
|
|
|
|
|
VERSION[22], 0, /* 'x' */
|
|
|
|
|
#endif
|
|
|
|
|
};
|
|
|
|
|
#else
|
|
|
|
|
/*
|
|
|
|
|
@ -207,7 +216,14 @@ static const uint8_t vcom_string3[] = {
|
|
|
|
|
* skip last two 'xx' char due to 'tinySA_v1.3-n-gxxxxxxx'
|
|
|
|
|
*/
|
|
|
|
|
static const uint8_t vcom_string3[] = {
|
|
|
|
|
USB_DESC_BYTE(32), /* bLength. */
|
|
|
|
|
#if 1
|
|
|
|
|
USB_DESC_BYTE(8), /* bLength. */
|
|
|
|
|
USB_DESC_BYTE(USB_DESCRIPTOR_STRING), /* bDescriptorType. */
|
|
|
|
|
'0' + CH_KERNEL_MAJOR, 0,
|
|
|
|
|
'0' + CH_KERNEL_MINOR, 0,
|
|
|
|
|
'0' + CH_KERNEL_PATCH, 0
|
|
|
|
|
#else
|
|
|
|
|
USB_DESC_BYTE(32), /* bLength. */
|
|
|
|
|
USB_DESC_BYTE(USB_DESCRIPTOR_STRING), /* bDescriptorType. */
|
|
|
|
|
VERSION[7], 0, /* 'v' */
|
|
|
|
|
VERSION[8], 0, /* '1' */
|
|
|
|
|
@ -224,6 +240,7 @@ static const uint8_t vcom_string3[] = {
|
|
|
|
|
VERSION[19], 0, /* 'x' */
|
|
|
|
|
VERSION[20], 0, /* 'x' */
|
|
|
|
|
VERSION[21], 0, /* 'x' */
|
|
|
|
|
#endif
|
|
|
|
|
};
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|