summaryrefslogtreecommitdiffstats
path: root/firmware/usbconfig.h
diff options
context:
space:
mode:
authorJenna Fox <a@creativepony.com>2012-09-25 09:32:31 +1000
committerJenna Fox <a@creativepony.com>2012-09-25 09:32:31 +1000
commitae4a95e323175420625b46b64a963187956187db (patch)
tree3c74b203fe3f79fad9275358f1811f7deaabf6f2 /firmware/usbconfig.h
parent2b80821ecbada3d3729d7e29080ee9b0e654e558 (diff)
downloadmicronucleus-ae4a95e323175420625b46b64a963187956187db.tar.gz
micronucleus-ae4a95e323175420625b46b64a963187956187db.tar.bz2
micronucleus-ae4a95e323175420625b46b64a963187956187db.zip
Switched to new digistump vid/pid, removed string manufacturer and product name to try shave some more bytes off
also adding better comments to firmware/main.c for future hackers
Diffstat (limited to 'firmware/usbconfig.h')
-rw-r--r--firmware/usbconfig.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/firmware/usbconfig.h b/firmware/usbconfig.h
index bca0ec0..f093a28 100644
--- a/firmware/usbconfig.h
+++ b/firmware/usbconfig.h
@@ -177,12 +177,12 @@
/* -------------------------- Device Description --------------------------- */
-#define USB_CFG_VENDOR_ID 0xc0, 0x16 /* = 0x16c0 = 5824 = voti.nl */
+#define USB_CFG_VENDOR_ID 0xD0, 0x16 /* = 0x16d0 */
/* USB vendor ID for the device, low byte first. If you have registered your
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
*/
-#define USB_CFG_DEVICE_ID 0xdc, 0x05 /* = 0x05dc = 1500 */
+#define USB_CFG_DEVICE_ID 0x53, 0x07 /* = 0x0753 = Digistump */
/* This is the ID of the product, low byte first. It is interpreted in the
* scope of the vendor ID. If you have registered your own VID with usb.org
* or if you have licensed a PID from somebody else, define it here. Otherwise
@@ -195,8 +195,8 @@
// electric arrow - not compliant with obdev's rules but we'll have our own vid-pid soon
//#define USB_CFG_VENDOR_NAME 0x2301
//#define USB_CFG_VENDOR_NAME_LEN 1
-#define USB_CFG_VENDOR_NAME 'c','r','e','a','t','i','v','e','p','o','n','y','.','c','o','m'
-#define USB_CFG_VENDOR_NAME_LEN 16
+//#define USB_CFG_VENDOR_NAME 'd','i','g','i','s','t','u','m','p','.','c','o','m'
+//#define USB_CFG_VENDOR_NAME_LEN 13
/* These two values define the vendor name returned by the USB device. The name
* must be given as a list of characters under single quotes. The characters
* are interpreted as Unicode (UTF-16) entities.
@@ -205,8 +205,8 @@
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
* details.
*/
-#define USB_CFG_DEVICE_NAME 'u','B','o','o','t'
-#define USB_CFG_DEVICE_NAME_LEN 5
+//#define USB_CFG_DEVICE_NAME 0x00B5,'B'
+//#define USB_CFG_DEVICE_NAME_LEN 2
/* Same as above for the device name. If you don't want a device name, undefine
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
* you use a shared VID/PID.
@@ -222,6 +222,8 @@
*/
#define USB_CFG_DEVICE_CLASS 0xff /* set to 0 if deferred to interface */
#define USB_CFG_DEVICE_SUBCLASS 0
+//#define USB_CFG_DEVICE_CLASS 0xFE /* application specific */
+//#define USB_CFG_DEVICE_SUBCLASS 0x01 /* device firmware upgrade */
/* See USB specification if you want to conform to an existing device class.
* Class 0xff is "vendor specific".
*/