Last active
March 7, 2019 02:28
-
-
Save j0hnm4r5/2a063b4ff14418d63fd25d99efd1ae71 to your computer and use it in GitHub Desktop.
Teensy Serial Name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <usb_names.h> | |
#define MANUFACTURER_NAME \ | |
{ \ | |
'M', '4', 'R', '5' \ | |
} | |
#define MANUFACTURER_NAME_LEN 4 | |
#define PRODUCT_NAME \ | |
{ \ | |
'K', 'V', 'M', '-', 'L', 'I', 'N', 'K', ' ', 'H', 'O', 'S', 'T' \ | |
} | |
#define PRODUCT_NAME_LEN 13 | |
#define SERIAL_NUMBER \ | |
{ \ | |
'K', 'V', 'M', 'L', '_', 'H', '_', '0', '0', '1' \ | |
} | |
#define SERIAL_NUMBER_LEN 10 | |
struct usb_string_descriptor_struct usb_string_manufacturer_name = { | |
2 + MANUFACTURER_NAME_LEN * 2, | |
3, | |
MANUFACTURER_NAME}; | |
struct usb_string_descriptor_struct usb_string_product_name = { | |
2 + PRODUCT_NAME_LEN * 2, | |
3, | |
PRODUCT_NAME}; | |
struct usb_string_descriptor_struct usb_string_serial_number = { | |
2 + SERIAL_NUMBER_LEN * 2, | |
3, | |
SERIAL_NUMBER}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment