Skip to content

Commit

Permalink
Merge pull request #3 from okyeron/usbhost
Browse files Browse the repository at this point in the history
Add usb host and usb name
  • Loading branch information
zueblin committed Apr 11, 2020
2 parents dc3ad25 + 20f560b commit 112c2fb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Software/Polaron/usb_names.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#include "usb_names.h"

// USED BY TEENSY TO DEFINE USB PRODUCT/MANUFACTURER/SERIAL INFO

#define PRODUCT_NAME {'p','o','l','a','r','o', 'n'}
#define PRODUCT_NAME_LEN 7
#define MANUFACTURER_NAME {'p','o','l','a','r','o', 'n'}
#define MANUFACTURER_NAME_LEN 7

// Change this to something different if you like - but you MUST keep the "m" as the first character.
#define SERIAL_NUM {'m','4','6','7','6','0','5','5'}
#define SERIAL_NUM_LEN 8

struct usb_string_descriptor_struct usb_string_product_name = {
2 + PRODUCT_NAME_LEN * 2,
3,
PRODUCT_NAME
};

struct usb_string_descriptor_struct usb_string_manufacturer_name = {
2 + MANUFACTURER_NAME_LEN * 2,
3,
MANUFACTURER_NAME
};

struct usb_string_descriptor_struct usb_string_serial_number = {
2 + SERIAL_NUM_LEN * 2,
3,
SERIAL_NUM
};

0 comments on commit 112c2fb

Please sign in to comment.