Move USB_MAX_POWER_CONSUMPTION
to data driven (#20648)
This commit is contained in:
parent
12d42cedd2
commit
2944e93870
@ -54,9 +54,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 400
|
||||
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
@ -5,7 +5,8 @@
|
||||
"usb": {
|
||||
"vid": "0x7033",
|
||||
"pid": "0x4749",
|
||||
"device_version": "0.0.1"
|
||||
"device_version": "0.0.1",
|
||||
"max_power": 400
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "B2",
|
||||
|
@ -16,8 +16,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 100
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
@ -6,7 +6,8 @@
|
||||
"usb": {
|
||||
"vid": "0x6B62",
|
||||
"pid": "0x8989",
|
||||
"device_version": "0.0.1"
|
||||
"device_version": "0.0.1",
|
||||
"max_power": 100
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A0", "A1", "A2", "A3", "A4", "B0", "B1", "B2", "D5", "D6", "C5", "C4", "C3", "C2", "C1"],
|
||||
|
@ -19,6 +19,3 @@
|
||||
|
||||
|
||||
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP FALSE
|
||||
|
||||
/* usb power settings */
|
||||
#define USB_MAX_POWER_CONSUMPTION 100
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"keyboard_name": "Chavdai40",
|
||||
"usb": {
|
||||
"device_version": "0.0.1"
|
||||
"device_version": "0.0.1",
|
||||
"max_power": 100
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B8", "B4", "B3", "B2", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1"],
|
||||
|
@ -19,6 +19,3 @@
|
||||
|
||||
|
||||
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP FALSE
|
||||
|
||||
/* usb power settings */
|
||||
#define USB_MAX_POWER_CONSUMPTION 100
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"keyboard_name": "Chavdai40 rev2",
|
||||
"usb": {
|
||||
"device_version": "0.0.2"
|
||||
"device_version": "0.0.2",
|
||||
"max_power": 100
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B7", "B4", "B3", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1"],
|
||||
|
@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 100
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
@ -6,7 +6,8 @@
|
||||
"usb": {
|
||||
"vid": "0x6B62",
|
||||
"pid": "0x1769",
|
||||
"device_version": "0.0.1"
|
||||
"device_version": "0.0.1",
|
||||
"max_power": 100
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["C0", "C1", "C2", "C3"],
|
||||
|
@ -16,8 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 100
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
@ -6,7 +6,8 @@
|
||||
"usb": {
|
||||
"vid": "0x6B62",
|
||||
"pid": "0x6869",
|
||||
"device_version": "0.0.1"
|
||||
"device_version": "0.0.1",
|
||||
"max_power": 100
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A2", "B3", "A3", "B4", "A4", "D5", "D6", "C6", "C5", "C4", "C3", "C2", "C1", "C0", "D7"],
|
||||
|
@ -16,8 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 100
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
@ -6,7 +6,8 @@
|
||||
"usb": {
|
||||
"vid": "0xFEED",
|
||||
"pid": "0xC18B",
|
||||
"device_version": "0.0.1"
|
||||
"device_version": "0.0.1",
|
||||
"max_power": 100
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A2", "B3", "A3", "B4", "A4", "D1", "D5", "D6", "A6", "A7", "C7", "C6", "C5", "C4", "D7", "C3", "C2", "C1", "C0", "D0"],
|
||||
|
@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 100
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
@ -6,7 +6,8 @@
|
||||
"usb": {
|
||||
"vid": "0x16C0",
|
||||
"pid": "0x27DB",
|
||||
"device_version": "0.0.2"
|
||||
"device_version": "0.0.2",
|
||||
"max_power": 100
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B0", "D7", "D6", "D5", "B2", "B1", "C0", "C1", "C2", "C3", "D1", "D0"],
|
||||
|
@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 100
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
@ -6,7 +6,8 @@
|
||||
"usb": {
|
||||
"vid": "0x454C",
|
||||
"pid": "0x0001",
|
||||
"device_version": "0.0.1"
|
||||
"device_version": "0.0.1",
|
||||
"max_power": 100
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A2", "B3", "A3", "B4", "A4", "D5", "D6", "C6", "C5", "C4", "C3", "C2", "C1", "C0", "D7", "A5", "A6", "A7"],
|
||||
|
@ -43,5 +43,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/* key combination for command */
|
||||
#define IS_COMMAND() (get_mods() == MOD_MASK_CTRL || get_mods() == MOD_MASK_SHIFT)
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 500
|
||||
|
@ -51,5 +51,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
|
||||
get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
|
||||
)
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 500
|
||||
|
@ -55,5 +55,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
|
||||
get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
|
||||
)
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 500
|
||||
|
@ -49,5 +49,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/* fix space cadet rollover issue */
|
||||
#define DISABLE_SPACE_CADET_ROLLOVER
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 500
|
||||
|
@ -32,5 +32,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define NO_ACTION_LAYER
|
||||
#define NO_ACTION_TAPPING
|
||||
#define NO_ACTION_ONESHOT
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 100
|
||||
|
@ -6,7 +6,8 @@
|
||||
"usb": {
|
||||
"vid": "0x4443",
|
||||
"pid": "0x4D43",
|
||||
"device_version": "0.0.1"
|
||||
"device_version": "0.0.1",
|
||||
"max_power": 100
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
|
@ -25,8 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define LED_BRIGHTNESS_LO 15
|
||||
#define LED_BRIGHTNESS_HI 255
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 500
|
||||
|
||||
#define MOUSEKEY_INTERVAL 20
|
||||
#define MOUSEKEY_DELAY 0
|
||||
#define MOUSEKEY_TIME_TO_MAX 5
|
||||
|
@ -21,8 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 100
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
|
@ -6,7 +6,8 @@
|
||||
"usb": {
|
||||
"vid": "0xFEED",
|
||||
"pid": "0x0000",
|
||||
"device_version": "0.0.2"
|
||||
"device_version": "0.0.2",
|
||||
"max_power": 100
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B0", "D7", "D6", "D5", "B2", "B1", "C0", "C1", "C2", "C3", "D1"],
|
||||
|
@ -19,6 +19,5 @@
|
||||
#define RGBLIGHT_HUE_STEP 10
|
||||
#define RGBLIGHT_SAT_STEP 17
|
||||
#define RGBLIGHT_VAL_STEP 17
|
||||
#define USB_MAX_POWER_CONSUMPTION 400
|
||||
|
||||
#define TAPPING_TERM 200
|
||||
|
@ -6,7 +6,8 @@
|
||||
"usb": {
|
||||
"vid": "0xFEED",
|
||||
"pid": "0x0007",
|
||||
"device_version": "0.0.1"
|
||||
"device_version": "0.0.1",
|
||||
"max_power": 400
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B4", "B6", "B2", "D7", "B1", "F7", "F6", "F5", "F4"],
|
||||
|
@ -34,8 +34,6 @@
|
||||
/* fix space cadet rollover issue */
|
||||
#define DISABLE_SPACE_CADET_ROLLOVER
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 500
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user