diff options
Diffstat (limited to 'keyboards/ymdk_np21')
| -rw-r--r-- | keyboards/ymdk_np21/config.h | 2 | ||||
| -rw-r--r-- | keyboards/ymdk_np21/usbconfig.h | 11 |
2 files changed, 2 insertions, 11 deletions
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 |
