Move USB_MAX_POWER_CONSUMPTION to data driven (#20648)

This commit is contained in:
Ryan 2023-05-01 17:37:12 +10:00 committed by GitHub
parent 12d42cedd2
commit 2944e93870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
99 changed files with 90 additions and 226 deletions

View File

@ -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 */

View File

@ -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",

View File

@ -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 */

View File

@ -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"],

View File

@ -19,6 +19,3 @@
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP FALSE
/* usb power settings */
#define USB_MAX_POWER_CONSUMPTION 100

View File

@ -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"],

View File

@ -19,6 +19,3 @@
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP FALSE
/* usb power settings */
#define USB_MAX_POWER_CONSUMPTION 100

View File

@ -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"],

View File

@ -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 */

View File

@ -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"],

View File

@ -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 */

View File

@ -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"],

View File

@ -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 */

View File

@ -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"],

View File

@ -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 */

View File

@ -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"],

View File

@ -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 */

View File

@ -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"],

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -6,7 +6,8 @@
"usb": {
"vid": "0x4443",
"pid": "0x4D43",
"device_version": "0.0.1"
"device_version": "0.0.1",
"max_power": 100
},
"encoder": {
"rotary": [

View File

@ -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

View File

@ -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.

View File

@ -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"],

View File

@ -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

View File

@ -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"],

View File

@ -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