summaryrefslogtreecommitdiff
path: root/keyboards/handwired
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-05-01 17:37:12 +1000
committerGitHub <noreply@github.com>2023-05-01 17:37:12 +1000
commit2944e938703e2049bb6262a0ab31e701d27e8ab3 (patch)
treea73caa75fafe8b7926e18886d603c032d246fcac /keyboards/handwired
parent12d42cedd2624db0d5cfe6f538211f9dfcd19822 (diff)
Move `USB_MAX_POWER_CONSUMPTION` to data driven (#20648)
Diffstat (limited to 'keyboards/handwired')
-rw-r--r--keyboards/handwired/dactyl/config.h2
-rw-r--r--keyboards/handwired/dc/mc/001/config.h2
-rw-r--r--keyboards/handwired/dc/mc/001/info.json3
-rw-r--r--keyboards/handwired/frenchdev/config.h2
-rw-r--r--keyboards/handwired/hnah40/config.h2
-rw-r--r--keyboards/handwired/hnah40/info.json3
-rw-r--r--keyboards/handwired/lovelive9/config.h1
-rw-r--r--keyboards/handwired/lovelive9/info.json3
8 files changed, 6 insertions, 12 deletions
diff --git a/keyboards/handwired/dactyl/config.h b/keyboards/handwired/dactyl/config.h
index 0b98f64a4f..f37a8f2722 100644
--- a/keyboards/handwired/dactyl/config.h
+++ b/keyboards/handwired/dactyl/config.h
@@ -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
diff --git a/keyboards/handwired/dc/mc/001/config.h b/keyboards/handwired/dc/mc/001/config.h
index 4e9dfdea8c..533f50e018 100644
--- a/keyboards/handwired/dc/mc/001/config.h
+++ b/keyboards/handwired/dc/mc/001/config.h
@@ -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
diff --git a/keyboards/handwired/dc/mc/001/info.json b/keyboards/handwired/dc/mc/001/info.json
index 852915569e..404cf2e45d 100644
--- a/keyboards/handwired/dc/mc/001/info.json
+++ b/keyboards/handwired/dc/mc/001/info.json
@@ -6,7 +6,8 @@
"usb": {
"vid": "0x4443",
"pid": "0x4D43",
- "device_version": "0.0.1"
+ "device_version": "0.0.1",
+ "max_power": 100
},
"encoder": {
"rotary": [
diff --git a/keyboards/handwired/frenchdev/config.h b/keyboards/handwired/frenchdev/config.h
index fc5d819060..9cb309c78f 100644
--- a/keyboards/handwired/frenchdev/config.h
+++ b/keyboards/handwired/frenchdev/config.h
@@ -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
diff --git a/keyboards/handwired/hnah40/config.h b/keyboards/handwired/hnah40/config.h
index 3ebccf9ad2..611a6960cb 100644
--- a/keyboards/handwired/hnah40/config.h
+++ b/keyboards/handwired/hnah40/config.h
@@ -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.
diff --git a/keyboards/handwired/hnah40/info.json b/keyboards/handwired/hnah40/info.json
index a4ed0756e7..728d6dbc59 100644
--- a/keyboards/handwired/hnah40/info.json
+++ b/keyboards/handwired/hnah40/info.json
@@ -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"],
diff --git a/keyboards/handwired/lovelive9/config.h b/keyboards/handwired/lovelive9/config.h
index e6499e9111..092e83d9d5 100644
--- a/keyboards/handwired/lovelive9/config.h
+++ b/keyboards/handwired/lovelive9/config.h
@@ -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
diff --git a/keyboards/handwired/lovelive9/info.json b/keyboards/handwired/lovelive9/info.json
index 25dc85704d..4000b543c3 100644
--- a/keyboards/handwired/lovelive9/info.json
+++ b/keyboards/handwired/lovelive9/info.json
@@ -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"],