diff options
author | fauxpark <fauxpark@gmail.com> | 2019-11-15 10:21:22 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-15 10:21:22 +1100 |
commit | 30473357290747be06e9200a7d9c751738a3b0a1 (patch) | |
tree | 7d200332f182da03d8c6a493b1378265d473e74d | |
parent | a2eb962704f1e87ed862a18650520df7a0fc5da8 (diff) | |
download | qmk_firmware-30473357290747be06e9200a7d9c751738a3b0a1.tar.gz qmk_firmware-30473357290747be06e9200a7d9c751738a3b0a1.zip |
Add support for configurable polling interval and power usage o… (#7336)
* Add support for custom polling interval and power usage on V-USB boards
* Use 1ms as default for now
50 files changed, 24 insertions, 413 deletions
diff --git a/keyboards/ares/usbconfig.h b/keyboards/ares/usbconfig.h index 89b7ffbaa..c6e0b8f81 100644 --- a/keyboards/ares/usbconfig.h +++ b/keyboards/ares/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/bfake/usbconfig.h b/keyboards/bfake/usbconfig.h index d2d848fcd..f6c85cc69 100644 --- a/keyboards/bfake/usbconfig.h +++ b/keyboards/bfake/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/coseyfannitutti/discipad/config.h b/keyboards/coseyfannitutti/discipad/config.h index ffa06ee25..7fe091582 100644 --- a/keyboards/coseyfannitutti/discipad/config.h +++ b/keyboards/coseyfannitutti/discipad/config.h | |||
@@ -50,6 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | #define DIODE_DIRECTION COL2ROW | 50 | #define DIODE_DIRECTION COL2ROW |
51 | 51 | ||
52 | #define NO_UART 1 | 52 | #define NO_UART 1 |
53 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
53 | 54 | ||
54 | /* | 55 | /* |
55 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | 56 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. |
diff --git a/keyboards/coseyfannitutti/discipad/usbconfig.h b/keyboards/coseyfannitutti/discipad/usbconfig.h index 505f0e5c8..0ae42cac8 100644 --- a/keyboards/coseyfannitutti/discipad/usbconfig.h +++ b/keyboards/coseyfannitutti/discipad/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 |
diff --git a/keyboards/coseyfannitutti/discipline/config.h b/keyboards/coseyfannitutti/discipline/config.h index b3386f94d..46dd49c51 100644 --- a/keyboards/coseyfannitutti/discipline/config.h +++ b/keyboards/coseyfannitutti/discipline/config.h | |||
@@ -48,6 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | #define DIODE_DIRECTION COL2ROW | 48 | #define DIODE_DIRECTION COL2ROW |
49 | 49 | ||
50 | #define NO_UART 1 | 50 | #define NO_UART 1 |
51 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
51 | 52 | ||
52 | /* | 53 | /* |
53 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | 54 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. |
diff --git a/keyboards/coseyfannitutti/discipline/usbconfig.h b/keyboards/coseyfannitutti/discipline/usbconfig.h index f20ad2f9c..a52f1c1b2 100644 --- a/keyboards/coseyfannitutti/discipline/usbconfig.h +++ b/keyboards/coseyfannitutti/discipline/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 |
diff --git a/keyboards/donutcables/budget96/usbconfig.h b/keyboards/donutcables/budget96/usbconfig.h index 223b69bb9..c290b434b 100644 --- a/keyboards/donutcables/budget96/usbconfig.h +++ b/keyboards/donutcables/budget96/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/eve/meteor/usbconfig.h b/keyboards/eve/meteor/usbconfig.h index da9b2b719..fd5d95e2e 100644 --- a/keyboards/eve/meteor/usbconfig.h +++ b/keyboards/eve/meteor/usbconfig.h | |||
@@ -98,20 +98,10 @@ section at the end of this file). | |||
98 | * (e.g. HID), but never want to send any data. This option saves a couple | 98 | * (e.g. HID), but never want to send any data. This option saves a couple |
99 | * of bytes in flash memory and the transmit buffers in RAM. | 99 | * of bytes in flash memory and the transmit buffers in RAM. |
100 | */ | 100 | */ |
101 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
102 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
103 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
104 | * low speed devices. | ||
105 | */ | ||
106 | #define USB_CFG_IS_SELF_POWERED 0 | 101 | #define USB_CFG_IS_SELF_POWERED 0 |
107 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 102 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
108 | * device is powered from the USB bus. | 103 | * device is powered from the USB bus. |
109 | */ | 104 | */ |
110 | #define USB_CFG_MAX_BUS_POWER 500 | ||
111 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
112 | * The value is in milliamperes. [It will be divided by two since USB | ||
113 | * communicates power requirements in units of 2 mA.] | ||
114 | */ | ||
115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 105 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 106 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
117 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 107 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
@@ -380,4 +370,4 @@ section at the end of this file). | |||
380 | #define USB_INTR_ENABLE_BIT INT1 | 370 | #define USB_INTR_ENABLE_BIT INT1 |
381 | /* #define USB_INTR_PENDING EIFR */ | 371 | /* #define USB_INTR_PENDING EIFR */ |
382 | #define USB_INTR_PENDING_BIT INTF1 | 372 | #define USB_INTR_PENDING_BIT INTF1 |
383 | #define USB_INTR_VECTOR INT1_vect \ No newline at end of file | 373 | #define USB_INTR_VECTOR INT1_vect |
diff --git a/keyboards/exclusive/e6v2/le_bmc/usbconfig.h b/keyboards/exclusive/e6v2/le_bmc/usbconfig.h index f22f2b631..30c5f55eb 100644 --- a/keyboards/exclusive/e6v2/le_bmc/usbconfig.h +++ b/keyboards/exclusive/e6v2/le_bmc/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/exclusive/e6v2/oe_bmc/usbconfig.h b/keyboards/exclusive/e6v2/oe_bmc/usbconfig.h index f22f2b631..30c5f55eb 100644 --- a/keyboards/exclusive/e6v2/oe_bmc/usbconfig.h +++ b/keyboards/exclusive/e6v2/oe_bmc/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/exent/usbconfig.h b/keyboards/exent/usbconfig.h index 9ef232f04..75f318b99 100644 --- a/keyboards/exent/usbconfig.h +++ b/keyboards/exent/usbconfig.h | |||
@@ -98,20 +98,10 @@ section at the end of this file). | |||
98 | * (e.g. HID), but never want to send any data. This option saves a couple | 98 | * (e.g. HID), but never want to send any data. This option saves a couple |
99 | * of bytes in flash memory and the transmit buffers in RAM. | 99 | * of bytes in flash memory and the transmit buffers in RAM. |
100 | */ | 100 | */ |
101 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
102 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
103 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
104 | * low speed devices. | ||
105 | */ | ||
106 | #define USB_CFG_IS_SELF_POWERED 0 | 101 | #define USB_CFG_IS_SELF_POWERED 0 |
107 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 102 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
108 | * device is powered from the USB bus. | 103 | * device is powered from the USB bus. |
109 | */ | 104 | */ |
110 | #define USB_CFG_MAX_BUS_POWER 500 | ||
111 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
112 | * The value is in milliamperes. [It will be divided by two since USB | ||
113 | * communicates power requirements in units of 2 mA.] | ||
114 | */ | ||
115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 105 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 106 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
117 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 107 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/facew/usbconfig.h b/keyboards/facew/usbconfig.h index f3d663f8a..d787d76ea 100644 --- a/keyboards/facew/usbconfig.h +++ b/keyboards/facew/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/ft/mars80/usbconfig.h b/keyboards/ft/mars80/usbconfig.h index 338b67f58..12018ee3b 100644 --- a/keyboards/ft/mars80/usbconfig.h +++ b/keyboards/ft/mars80/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/gingham/config.h b/keyboards/gingham/config.h index 53601e8ca..d89120c28 100644 --- a/keyboards/gingham/config.h +++ b/keyboards/gingham/config.h | |||
@@ -51,6 +51,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
51 | #define DIODE_DIRECTION COL2ROW | 51 | #define DIODE_DIRECTION COL2ROW |
52 | 52 | ||
53 | #define NO_UART 1 | 53 | #define NO_UART 1 |
54 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
54 | 55 | ||
55 | /* | 56 | /* |
56 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | 57 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. |
diff --git a/keyboards/gingham/usbconfig.h b/keyboards/gingham/usbconfig.h index 30cdd3698..7b408693d 100644 --- a/keyboards/gingham/usbconfig.h +++ b/keyboards/gingham/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 |
diff --git a/keyboards/gray_studio/hb85/usbconfig.h b/keyboards/gray_studio/hb85/usbconfig.h index c52c90ce8..725a47ac3 100644 --- a/keyboards/gray_studio/hb85/usbconfig.h +++ b/keyboards/gray_studio/hb85/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/handwired/hnah40/config.h b/keyboards/handwired/hnah40/config.h index b7a4105d0..3d3c05fd4 100644 --- a/keyboards/handwired/hnah40/config.h +++ b/keyboards/handwired/hnah40/config.h | |||
@@ -78,6 +78,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
78 | */ | 78 | */ |
79 | // #define GRAVE_ESC_CTRL_OVERRIDE | 79 | // #define GRAVE_ESC_CTRL_OVERRIDE |
80 | 80 | ||
81 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
82 | |||
81 | /* | 83 | /* |
82 | * Force NKRO | 84 | * Force NKRO |
83 | * | 85 | * |
diff --git a/keyboards/handwired/hnah40/usbconfig.h b/keyboards/handwired/hnah40/usbconfig.h index cbd37c34d..996c4584b 100644 --- a/keyboards/handwired/hnah40/usbconfig.h +++ b/keyboards/handwired/hnah40/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 |
diff --git a/keyboards/jc65/v32a/usbconfig.h b/keyboards/jc65/v32a/usbconfig.h index d2d848fcd..f6c85cc69 100644 --- a/keyboards/jc65/v32a/usbconfig.h +++ b/keyboards/jc65/v32a/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/jj40/config.h b/keyboards/jj40/config.h index c068685a4..8efbc7ba2 100644 --- a/keyboards/jj40/config.h +++ b/keyboards/jj40/config.h | |||
@@ -45,6 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | #define DEBOUNCE 5 | 45 | #define DEBOUNCE 5 |
46 | 46 | ||
47 | #define NO_UART 1 | 47 | #define NO_UART 1 |
48 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
48 | 49 | ||
49 | /* key combination for magic key command */ | 50 | /* key combination for magic key command */ |
50 | /* defined by default; to change, uncomment and set to the combination you want */ | 51 | /* defined by default; to change, uncomment and set to the combination you want */ |
diff --git a/keyboards/jj40/usbconfig.h b/keyboards/jj40/usbconfig.h index ad97e7f0a..d1fb1f517 100644 --- a/keyboards/jj40/usbconfig.h +++ b/keyboards/jj40/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 |
diff --git a/keyboards/jj4x4/config.h b/keyboards/jj4x4/config.h index 80fa07d3b..423d6653e 100644 --- a/keyboards/jj4x4/config.h +++ b/keyboards/jj4x4/config.h | |||
@@ -48,6 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
48 | #define DEBOUNCE 5 | 48 | #define DEBOUNCE 5 |
49 | 49 | ||
50 | #define NO_UART 1 | 50 | #define NO_UART 1 |
51 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
51 | 52 | ||
52 | /* key combination for magic key command */ | 53 | /* key combination for magic key command */ |
53 | /* defined by default; to change, uncomment and set to the combination you want */ | 54 | /* defined by default; to change, uncomment and set to the combination you want */ |
diff --git a/keyboards/jj4x4/usbconfig.h b/keyboards/jj4x4/usbconfig.h index a7653bde8..1a5ad4056 100644 --- a/keyboards/jj4x4/usbconfig.h +++ b/keyboards/jj4x4/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 |
diff --git a/keyboards/jj50/usbconfig.h b/keyboards/jj50/usbconfig.h index 59f29d04d..0618bbca8 100644 --- a/keyboards/jj50/usbconfig.h +++ b/keyboards/jj50/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/kbdfans/kbdpad/mk1/usbconfig.h b/keyboards/kbdfans/kbdpad/mk1/usbconfig.h index 54a7d20f1..782c2ff1a 100644 --- a/keyboards/kbdfans/kbdpad/mk1/usbconfig.h +++ b/keyboards/kbdfans/kbdpad/mk1/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/mechmini/v1/usbconfig.h b/keyboards/mechmini/v1/usbconfig.h index d2d848fcd..f6c85cc69 100644 --- a/keyboards/mechmini/v1/usbconfig.h +++ b/keyboards/mechmini/v1/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/mehkee96/usbconfig.h b/keyboards/mehkee96/usbconfig.h index d2d848fcd..f6c85cc69 100644 --- a/keyboards/mehkee96/usbconfig.h +++ b/keyboards/mehkee96/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/mt40/usbconfig.h b/keyboards/mt40/usbconfig.h index 498b01fd9..797e410a5 100644 --- a/keyboards/mt40/usbconfig.h +++ b/keyboards/mt40/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/panc60/usbconfig.h b/keyboards/panc60/usbconfig.h index 54a7d20f1..782c2ff1a 100644 --- a/keyboards/panc60/usbconfig.h +++ b/keyboards/panc60/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/pearl/usbconfig.h b/keyboards/pearl/usbconfig.h index 54a7d20f1..782c2ff1a 100644 --- a/keyboards/pearl/usbconfig.h +++ b/keyboards/pearl/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/percent/canoe/usbconfig.h b/keyboards/percent/canoe/usbconfig.h index d2d848fcd..f6c85cc69 100644 --- a/keyboards/percent/canoe/usbconfig.h +++ b/keyboards/percent/canoe/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/percent/skog/usbconfig.h b/keyboards/percent/skog/usbconfig.h index 481d7c0b1..3fb8e46ab 100644 --- a/keyboards/percent/skog/usbconfig.h +++ b/keyboards/percent/skog/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/percent/skog_lite/usbconfig.h b/keyboards/percent/skog_lite/usbconfig.h index 54a7d20f1..782c2ff1a 100644 --- a/keyboards/percent/skog_lite/usbconfig.h +++ b/keyboards/percent/skog_lite/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/plaid/config.h b/keyboards/plaid/config.h index 9da31d700..8fa8aa85b 100644 --- a/keyboards/plaid/config.h +++ b/keyboards/plaid/config.h | |||
@@ -50,6 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | #define DIODE_DIRECTION COL2ROW | 50 | #define DIODE_DIRECTION COL2ROW |
51 | 51 | ||
52 | #define NO_UART 1 | 52 | #define NO_UART 1 |
53 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
53 | 54 | ||
54 | /* | 55 | /* |
55 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | 56 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. |
diff --git a/keyboards/plaid/usbconfig.h b/keyboards/plaid/usbconfig.h index ea9fdd8ea..c505c7f66 100644 --- a/keyboards/plaid/usbconfig.h +++ b/keyboards/plaid/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 |
diff --git a/keyboards/singa/usbconfig.h b/keyboards/singa/usbconfig.h index 54a7d20f1..782c2ff1a 100644 --- a/keyboards/singa/usbconfig.h +++ b/keyboards/singa/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/tgr/alice/usbconfig.h b/keyboards/tgr/alice/usbconfig.h index df7a88e3a..8d6cbe016 100644 --- a/keyboards/tgr/alice/usbconfig.h +++ b/keyboards/tgr/alice/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/tgr/jane/usbconfig.h b/keyboards/tgr/jane/usbconfig.h index 54a7d20f1..782c2ff1a 100644 --- a/keyboards/tgr/jane/usbconfig.h +++ b/keyboards/tgr/jane/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/unikorn/usbconfig.h b/keyboards/unikorn/usbconfig.h index 41ce167a8..29a3bd06e 100644 --- a/keyboards/unikorn/usbconfig.h +++ b/keyboards/unikorn/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/winkeyless/bface/usbconfig.h b/keyboards/winkeyless/bface/usbconfig.h index 192d80d91..2109bb14d 100644 --- a/keyboards/winkeyless/bface/usbconfig.h +++ b/keyboards/winkeyless/bface/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/winkeyless/bmini/usbconfig.h b/keyboards/winkeyless/bmini/usbconfig.h index d2d848fcd..f6c85cc69 100644 --- a/keyboards/winkeyless/bmini/usbconfig.h +++ b/keyboards/winkeyless/bmini/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/winkeyless/bminiex/usbconfig.h b/keyboards/winkeyless/bminiex/usbconfig.h index d2d848fcd..f6c85cc69 100644 --- a/keyboards/winkeyless/bminiex/usbconfig.h +++ b/keyboards/winkeyless/bminiex/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/ymd75/usbconfig.h b/keyboards/ymd75/usbconfig.h index 73afb18e6..271ab70dc 100644 --- a/keyboards/ymd75/usbconfig.h +++ b/keyboards/ymd75/usbconfig.h | |||
@@ -109,20 +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 | #define USB_CFG_MAX_BUS_POWER 500 | ||
122 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
123 | * The value is in milliamperes. [It will be divided by two since USB | ||
124 | * communicates power requirements in units of 2 mA.] | ||
125 | */ | ||
126 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 116 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
127 | /* 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 |
128 | * 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 |
diff --git a/keyboards/ymd96/config.h b/keyboards/ymd96/config.h index 58169196b..25cf19ac4 100644 --- a/keyboards/ymd96/config.h +++ b/keyboards/ymd96/config.h | |||
@@ -42,6 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
42 | #define TAPPING_TOGGLE 3 | 42 | #define TAPPING_TOGGLE 3 |
43 | 43 | ||
44 | #define NO_UART 1 | 44 | #define NO_UART 1 |
45 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
45 | 46 | ||
46 | /* RGB underglow */ | 47 | /* RGB underglow */ |
47 | // The RGB_DI_PIN value seems to be shared between all PS2AVRGB boards. | 48 | // The RGB_DI_PIN value seems to be shared between all PS2AVRGB boards. |
diff --git a/keyboards/ymd96/usbconfig.h b/keyboards/ymd96/usbconfig.h index a90a36f08..a218829a6 100644 --- a/keyboards/ymd96/usbconfig.h +++ b/keyboards/ymd96/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 |
diff --git a/keyboards/ymdk/bface/usbconfig.h b/keyboards/ymdk/bface/usbconfig.h index c9d0fe4d9..24191f5e3 100644 --- a/keyboards/ymdk/bface/usbconfig.h +++ b/keyboards/ymdk/bface/usbconfig.h | |||
@@ -108,20 +108,10 @@ section at the end of this file). | |||
108 | * (e.g. HID), but never want to send any data. This option saves a couple | 108 | * (e.g. HID), but never want to send any data. This option saves a couple |
109 | * of bytes in flash memory and the transmit buffers in RAM. | 109 | * of bytes in flash memory and the transmit buffers in RAM. |
110 | */ | 110 | */ |
111 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
112 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
113 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
114 | * low speed devices. | ||
115 | */ | ||
116 | #define USB_CFG_IS_SELF_POWERED 0 | 111 | #define USB_CFG_IS_SELF_POWERED 0 |
117 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 112 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
118 | * device is powered from the USB bus. | 113 | * device is powered from the USB bus. |
119 | */ | 114 | */ |
120 | #define USB_CFG_MAX_BUS_POWER 500 | ||
121 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
122 | * The value is in milliamperes. [It will be divided by two since USB | ||
123 | * communicates power requirements in units of 2 mA.] | ||
124 | */ | ||
125 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
126 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
127 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/keyboards/ymdk_np21/config.h b/keyboards/ymdk_np21/config.h index 5982b6c53..30ba40081 100644 --- a/keyboards/ymdk_np21/config.h +++ b/keyboards/ymdk_np21/config.h | |||
@@ -41,6 +41,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
41 | 41 | ||
42 | #define NO_UART 1 | 42 | #define NO_UART 1 |
43 | 43 | ||
44 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
45 | |||
44 | /* RGB underglow */ | 46 | /* RGB underglow */ |
45 | // The RGB_DI_PIN value seems to be shared between all PS2AVRGB boards. | 47 | // The RGB_DI_PIN value seems to be shared between all PS2AVRGB boards. |
46 | // The same pin is used on the JJ40, at least. | 48 | // The same pin is used on the JJ40, at least. |
diff --git a/keyboards/ymdk_np21/usbconfig.h b/keyboards/ymdk_np21/usbconfig.h index ad97e7f0a..d1fb1f517 100644 --- a/keyboards/ymdk_np21/usbconfig.h +++ b/keyboards/ymdk_np21/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 |
diff --git a/quantum/template/ps2avrgb/usbconfig.h b/quantum/template/ps2avrgb/usbconfig.h index 9ef232f04..75f318b99 100644 --- a/quantum/template/ps2avrgb/usbconfig.h +++ b/quantum/template/ps2avrgb/usbconfig.h | |||
@@ -98,20 +98,10 @@ section at the end of this file). | |||
98 | * (e.g. HID), but never want to send any data. This option saves a couple | 98 | * (e.g. HID), but never want to send any data. This option saves a couple |
99 | * of bytes in flash memory and the transmit buffers in RAM. | 99 | * of bytes in flash memory and the transmit buffers in RAM. |
100 | */ | 100 | */ |
101 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
102 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
103 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
104 | * low speed devices. | ||
105 | */ | ||
106 | #define USB_CFG_IS_SELF_POWERED 0 | 101 | #define USB_CFG_IS_SELF_POWERED 0 |
107 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 102 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
108 | * device is powered from the USB bus. | 103 | * device is powered from the USB bus. |
109 | */ | 104 | */ |
110 | #define USB_CFG_MAX_BUS_POWER 500 | ||
111 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
112 | * The value is in milliamperes. [It will be divided by two since USB | ||
113 | * communicates power requirements in units of 2 mA.] | ||
114 | */ | ||
115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 105 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 106 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
117 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 107 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c index 3719b7aa0..72445e00b 100644 --- a/tmk_core/protocol/vusb/vusb.c +++ b/tmk_core/protocol/vusb/vusb.c | |||
@@ -345,6 +345,15 @@ const PROGMEM uchar mouse_hid_report[] = { | |||
345 | 0xc0, // END_COLLECTION | 345 | 0xc0, // END_COLLECTION |
346 | }; | 346 | }; |
347 | 347 | ||
348 | #ifndef USB_MAX_POWER_CONSUMPTION | ||
349 | # define USB_MAX_POWER_CONSUMPTION 500 | ||
350 | #endif | ||
351 | |||
352 | // TODO: change this to 10ms to match LUFA | ||
353 | #ifndef USB_POLLING_INTERVAL_MS | ||
354 | # define USB_POLLING_INTERVAL_MS 1 | ||
355 | #endif | ||
356 | |||
348 | /* | 357 | /* |
349 | * Descriptor for compite device: Keyboard + Mouse | 358 | * Descriptor for compite device: Keyboard + Mouse |
350 | * | 359 | * |
@@ -366,7 +375,7 @@ const PROGMEM char usbDescriptorConfiguration[] = { | |||
366 | # else | 375 | # else |
367 | (1 << 7), /* attributes */ | 376 | (1 << 7), /* attributes */ |
368 | # endif | 377 | # endif |
369 | USB_CFG_MAX_BUS_POWER / 2, /* max USB current in 2mA units */ | 378 | USB_MAX_POWER_CONSUMPTION / 2, /* max USB current in 2mA units */ |
370 | 379 | ||
371 | /* | 380 | /* |
372 | * Keyboard interface | 381 | * Keyboard interface |
@@ -393,7 +402,7 @@ const PROGMEM char usbDescriptorConfiguration[] = { | |||
393 | (char)0x81, /* IN endpoint number 1 */ | 402 | (char)0x81, /* IN endpoint number 1 */ |
394 | 0x03, /* attrib: Interrupt endpoint */ | 403 | 0x03, /* attrib: Interrupt endpoint */ |
395 | 8, 0, /* maximum packet size */ | 404 | 8, 0, /* maximum packet size */ |
396 | USB_CFG_INTR_POLL_INTERVAL, /* in ms */ | 405 | USB_POLLING_INTERVAL_MS, /* in ms */ |
397 | # endif | 406 | # endif |
398 | 407 | ||
399 | /* | 408 | /* |
@@ -424,7 +433,7 @@ const PROGMEM char usbDescriptorConfiguration[] = { | |||
424 | (char)(0x80 | USB_CFG_EP3_NUMBER), /* IN endpoint number 3 */ | 433 | (char)(0x80 | USB_CFG_EP3_NUMBER), /* IN endpoint number 3 */ |
425 | 0x03, /* attrib: Interrupt endpoint */ | 434 | 0x03, /* attrib: Interrupt endpoint */ |
426 | 8, 0, /* maximum packet size */ | 435 | 8, 0, /* maximum packet size */ |
427 | USB_CFG_INTR_POLL_INTERVAL, /* in ms */ | 436 | USB_POLLING_INTERVAL_MS, /* in ms */ |
428 | # endif | 437 | # endif |
429 | }; | 438 | }; |
430 | #endif | 439 | #endif |