mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-21 06:12:16 -04:00
Update USB product descriptor for Castor
This commit is contained in:
parent
62adf4da71
commit
a0f699aea5
2 changed files with 11 additions and 6 deletions
|
@ -51,7 +51,7 @@ def format_descriptor(name, value):
|
|||
|
||||
if __name__ == "__main__":
|
||||
strings = {
|
||||
"ProdDesc": "MTA1-USB-V1",
|
||||
"ProdDesc": "Tillitis TKEY-USB-V2",
|
||||
"ManufDesc": "Tillitis",
|
||||
"SerialDesc": "68de5d27-e223-4874-bc76-a54d6e84068f",
|
||||
"CdcCtrlInterfaceDesc": "CDC-Ctrl",
|
||||
|
@ -62,6 +62,9 @@ if __name__ == "__main__":
|
|||
}
|
||||
|
||||
with open('inc/usb_strings.h', 'w') as f:
|
||||
f.write('// SPDX-FileCopyrightText: 2024 Tillitis AB <tillitis.se>\n')
|
||||
f.write('// SPDX-License-Identifier: MIT\n')
|
||||
f.write('\n')
|
||||
f.write('#ifndef __USB_STRINGS_H__\n')
|
||||
f.write('#define __USB_STRINGS_H__\n')
|
||||
f.write('\n')
|
||||
|
|
|
@ -6,12 +6,14 @@
|
|||
|
||||
#include "mem.h"
|
||||
|
||||
unsigned char FLASH ProdDesc[] = { // "MTA1-USB-V1"
|
||||
24, // Length of this descriptor (in bytes)
|
||||
unsigned char FLASH ProdDesc[] = { // "Tillitis TKEY-USB-V2"
|
||||
42, // Length of this descriptor (in bytes)
|
||||
0x03, // Descriptor type (String)
|
||||
'M', 0, 'T', 0, 'A', 0, '1', 0,
|
||||
'-', 0, 'U', 0, 'S', 0, 'B', 0,
|
||||
'-', 0, 'V', 0, '1', 0,
|
||||
'T', 0, 'i', 0, 'l', 0, 'l', 0,
|
||||
'i', 0, 't', 0, 'i', 0, 's', 0,
|
||||
' ', 0, 'T', 0, 'K', 0, 'E', 0,
|
||||
'Y', 0, '-', 0, 'U', 0, 'S', 0,
|
||||
'B', 0, '-', 0, 'V', 0, '2', 0,
|
||||
};
|
||||
|
||||
unsigned char FLASH ManufDesc[] = { // "Tillitis"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue