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