diff options
Diffstat (limited to 'keyboards/chidori/usbconfig.h')
| -rw-r--r-- | keyboards/chidori/usbconfig.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/keyboards/chidori/usbconfig.h b/keyboards/chidori/usbconfig.h index 361868d28..48b72de93 100644 --- a/keyboards/chidori/usbconfig.h +++ b/keyboards/chidori/usbconfig.h | |||
| @@ -109,21 +109,10 @@ section at the end of this file). | |||
| 109 | * (e.g. HID), but never want to send any data. This option saves a couple | 109 | * (e.g. HID), but never want to send any data. This option saves a couple |
| 110 | * of bytes in flash memory and the transmit buffers in RAM. | 110 | * of bytes in flash memory and the transmit buffers in RAM. |
| 111 | */ | 111 | */ |
| 112 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
| 113 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
| 114 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
| 115 | * low speed devices. | ||
| 116 | */ | ||
| 117 | #define USB_CFG_IS_SELF_POWERED 0 | 112 | #define USB_CFG_IS_SELF_POWERED 0 |
| 118 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 113 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
| 119 | * device is powered from the USB bus. | 114 | * device is powered from the USB bus. |
| 120 | */ | 115 | */ |
| 121 | // max power draw with maxed white underglow measured at 120 mA (peaks) | ||
| 122 | #define USB_CFG_MAX_BUS_POWER 100 | ||
| 123 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
| 124 | * The value is in milliamperes. [It will be divided by two since USB | ||
| 125 | * communicates power requirements in units of 2 mA.] | ||
| 126 | */ | ||
| 127 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
| 128 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 117 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
| 129 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 118 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
| @@ -219,7 +208,7 @@ section at the end of this file). | |||
| 219 | 208 | ||
| 220 | /* -------------------------- Device Description --------------------------- */ | 209 | /* -------------------------- Device Description --------------------------- */ |
| 221 | 210 | ||
| 222 | #define USB_CFG_VENDOR_ID (VENDOR_ID & 0xED), ((VENDOR_ID >> 8) & 0xFE) | 211 | #define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF) |
| 223 | /* USB vendor ID for the device, low byte first. If you have registered your | 212 | /* USB vendor ID for the device, low byte first. If you have registered your |
| 224 | * own Vendor ID, define it here. Otherwise you may use one of obdev's free | 213 | * own Vendor ID, define it here. Otherwise you may use one of obdev's free |
| 225 | * shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules! | 214 | * shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules! |
| @@ -228,7 +217,7 @@ section at the end of this file). | |||
| 228 | * 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 |
| 229 | * the implications! | 218 | * the implications! |
| 230 | */ | 219 | */ |
| 231 | #define USB_CFG_DEVICE_ID (PRODUCT_ID & 0x00), ((PRODUCT_ID >> 8) & 0x00) | 220 | #define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF) |
| 232 | /* This is the ID of the product, low byte first. It is interpreted in the | 221 | /* This is the ID of the product, low byte first. It is interpreted in the |
| 233 | * scope of the vendor ID. If you have registered your own VID with usb.org | 222 | * scope of the vendor ID. If you have registered your own VID with usb.org |
| 234 | * or if you have licensed a PID from somebody else, define it here. Otherwise | 223 | * or if you have licensed a PID from somebody else, define it here. Otherwise |
| @@ -239,10 +228,10 @@ section at the end of this file). | |||
| 239 | * with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand | 228 | * with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand |
| 240 | * the implications! | 229 | * the implications! |
| 241 | */ | 230 | */ |
| 242 | #define USB_CFG_DEVICE_VERSION 0x00, 0x01 | 231 | #define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF) |
| 243 | /* Version number of the device: Minor number first, then major number. | 232 | /* Version number of the device: Minor number first, then major number. |
| 244 | */ | 233 | */ |
| 245 | #define USB_CFG_VENDOR_NAME 'k','a','g','i','z','a','r','a','y','a' | 234 | #define USB_CFG_VENDOR_NAME 'K','a','g','i','z','a','r','a','y','a' |
| 246 | #define USB_CFG_VENDOR_NAME_LEN 10 | 235 | #define USB_CFG_VENDOR_NAME_LEN 10 |
| 247 | /* These two values define the vendor name returned by the USB device. The name | 236 | /* These two values define the vendor name returned by the USB device. The name |
| 248 | * must be given as a list of characters under single quotes. The characters | 237 | * must be given as a list of characters under single quotes. The characters |
| @@ -258,8 +247,8 @@ section at the end of this file). | |||
| 258 | * the macros. See the file USB-IDs-for-free.txt before you assign a name if | 247 | * the macros. See the file USB-IDs-for-free.txt before you assign a name if |
| 259 | * you use a shared VID/PID. | 248 | * you use a shared VID/PID. |
| 260 | */ | 249 | */ |
| 261 | //#define USB_CFG_SERIAL_NUMBER 'd','m','9','r','e','c','o','r','d','s','.','c','o','m',':','p','1' | 250 | /*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */ |
| 262 | //#define USB_CFG_SERIAL_NUMBER_LEN 17 | 251 | /*#define USB_CFG_SERIAL_NUMBER_LEN 0 */ |
| 263 | /* Same as above for the serial number. If you don't want a serial number, | 252 | /* Same as above for the serial number. If you don't want a serial number, |
| 264 | * undefine the macros. | 253 | * undefine the macros. |
| 265 | * It may be useful to provide the serial number through other means than at | 254 | * It may be useful to provide the serial number through other means than at |
