aboutsummaryrefslogtreecommitdiff
path: root/quantum/template/ps2avrgb/usbconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/template/ps2avrgb/usbconfig.h')
-rw-r--r--quantum/template/ps2avrgb/usbconfig.h47
1 files changed, 8 insertions, 39 deletions
diff --git a/quantum/template/ps2avrgb/usbconfig.h b/quantum/template/ps2avrgb/usbconfig.h
index 83ad06544..6e910a703 100644
--- a/quantum/template/ps2avrgb/usbconfig.h
+++ b/quantum/template/ps2avrgb/usbconfig.h
@@ -197,7 +197,7 @@ section at the end of this file).
197 197
198/* -------------------------- Device Description --------------------------- */ 198/* -------------------------- Device Description --------------------------- */
199 199
200#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF) 200#define USB_CFG_VENDOR_ID
201/* USB vendor ID for the device, low byte first. If you have registered your 201/* USB vendor ID for the device, low byte first. If you have registered your
202 * own Vendor ID, define it here. Otherwise you may use one of obdev's free 202 * own Vendor ID, define it here. Otherwise you may use one of obdev's free
203 * shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules! 203 * shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
@@ -206,7 +206,7 @@ section at the end of this file).
206 * with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand 206 * with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
207 * the implications! 207 * the implications!
208 */ 208 */
209#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF) 209#define USB_CFG_DEVICE_ID
210/* This is the ID of the product, low byte first. It is interpreted in the 210/* This is the ID of the product, low byte first. It is interpreted in the
211 * scope of the vendor ID. If you have registered your own VID with usb.org 211 * scope of the vendor ID. If you have registered your own VID with usb.org
212 * or if you have licensed a PID from somebody else, define it here. Otherwise 212 * or if you have licensed a PID from somebody else, define it here. Otherwise
@@ -217,34 +217,6 @@ section at the end of this file).
217 * with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand 217 * with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
218 * the implications! 218 * the implications!
219 */ 219 */
220#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
221/* Version number of the device: Minor number first, then major number.
222 */
223#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
224#define USB_CFG_VENDOR_NAME_LEN 13
225/* These two values define the vendor name returned by the USB device. The name
226 * must be given as a list of characters under single quotes. The characters
227 * are interpreted as Unicode (UTF-16) entities.
228 * If you don't want a vendor name string, undefine these macros.
229 * ALWAYS define a vendor name containing your Internet domain name if you use
230 * obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
231 * details.
232 */
233#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
234#define USB_CFG_DEVICE_NAME_LEN 8
235/* Same as above for the device name. If you don't want a device name, undefine
236 * the macros. See the file USB-IDs-for-free.txt before you assign a name if
237 * you use a shared VID/PID.
238 */
239/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
240/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
241/* Same as above for the serial number. If you don't want a serial number,
242 * undefine the macros.
243 * It may be useful to provide the serial number through other means than at
244 * compile time. See the section about descriptor properties below for how
245 * to fine tune control over USB descriptors such as the string descriptor
246 * for the serial number.
247 */
248#define USB_CFG_DEVICE_CLASS 0 220#define USB_CFG_DEVICE_CLASS 0
249#define USB_CFG_DEVICE_SUBCLASS 0 221#define USB_CFG_DEVICE_SUBCLASS 0
250/* See USB specification if you want to conform to an existing device class. 222/* See USB specification if you want to conform to an existing device class.
@@ -323,18 +295,15 @@ section at the end of this file).
323 * }; 295 * };
324 */ 296 */
325 297
326#define USB_CFG_DESCR_PROPS_DEVICE 0 298#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
327#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC 299#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
328//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0 300#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
329#define USB_CFG_DESCR_PROPS_STRINGS 0 301#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
330#define USB_CFG_DESCR_PROPS_STRING_0 0 302#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
331#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0 303#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
332#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0 304#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
333#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
334#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC 305#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
335//#define USB_CFG_DESCR_PROPS_HID 0
336#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC 306#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
337//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
338#define USB_CFG_DESCR_PROPS_UNKNOWN 0 307#define USB_CFG_DESCR_PROPS_UNKNOWN 0
339 308
340#define usbMsgPtr_t unsigned short 309#define usbMsgPtr_t unsigned short