aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-02-28 21:25:09 +0000
committerGitHub <noreply@github.com>2021-02-28 21:25:09 +0000
commitf8266a228cacbc31b0455161e0a8bd073feaa9db (patch)
tree877017e74a4369e7b3b07f35f7777af8fee5d84a /data
parent59c7deab0931207016315636ae1ef74c2c54dd18 (diff)
downloadqmk_firmware-f8266a228cacbc31b0455161e0a8bd073feaa9db.tar.gz
qmk_firmware-f8266a228cacbc31b0455161e0a8bd073feaa9db.zip
Migrate make_dfu_header to CLI (#12061)
* Migrate make_dfu_header to CLI * lint fixes * Update lib/python/qmk/cli/generate/dfu_header.py Co-authored-by: Ryan <fauxpark@gmail.com> * Rename object Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'data')
-rw-r--r--data/mappings/info_config.json6
-rw-r--r--data/schemas/keyboard.jsonschema22
2 files changed, 27 insertions, 1 deletions
diff --git a/data/mappings/info_config.json b/data/mappings/info_config.json
index 885e6d025..b949b1332 100644
--- a/data/mappings/info_config.json
+++ b/data/mappings/info_config.json
@@ -38,5 +38,9 @@
38 "RGBLIGHT_SPLIT": {"info_key": "rgblight.split", "value_type": "bool"}, 38 "RGBLIGHT_SPLIT": {"info_key": "rgblight.split", "value_type": "bool"},
39 "PRODUCT": {"info_key": "keyboard_folder", "to_json": false}, 39 "PRODUCT": {"info_key": "keyboard_folder", "to_json": false},
40 "PRODUCT_ID": {"info_key": "usb.pid", "value_type": "hex"}, 40 "PRODUCT_ID": {"info_key": "usb.pid", "value_type": "hex"},
41 "VENDOR_ID": {"info_key": "usb.vid", "value_type": "hex"} 41 "VENDOR_ID": {"info_key": "usb.vid", "value_type": "hex"},
42 "QMK_ESC_OUTPUT": {"info_key": "qmk_lufa_bootloader.esc_output"},
43 "QMK_ESC_INPUT": {"info_key": "qmk_lufa_bootloader.esc_input"},
44 "QMK_LED": {"info_key": "qmk_lufa_bootloader.led"},
45 "QMK_SPEAKER": {"info_key": "qmk_lufa_bootloader.speaker"}
42} 46}
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index 749e8f100..ec03a8828 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -299,6 +299,28 @@
299 "pattern": "^[0-9A-F]x[0-9A-F][0-9A-F][0-9A-F][0-9A-F]" 299 "pattern": "^[0-9A-F]x[0-9A-F][0-9A-F][0-9A-F][0-9A-F]"
300 } 300 }
301 } 301 }
302 },
303 "qmk_lufa_bootloader": {
304 "type": "object",
305 "additionalProperties": false,
306 "properties": {
307 "esc_output": {
308 "type": "string",
309 "pattern": "^[A-K]\\d{1,2}$"
310 },
311 "esc_input": {
312 "type": "string",
313 "pattern": "^[A-K]\\d{1,2}$"
314 },
315 "led": {
316 "type": "string",
317 "pattern": "^[A-K]\\d{1,2}$"
318 },
319 "speaker": {
320 "type": "string",
321 "pattern": "^[A-K]\\d{1,2}$"
322 }
323 }
302 } 324 }
303 } 325 }
304} 326}