Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data driven split serial implementation #23149

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
keyboard.jsonschema: add serial and driver
  • Loading branch information
evils committed Feb 28, 2024
commit 5750bd35336dccc1e67862329f42469b0cfbd658
4 changes: 4 additions & 0 deletions data/mappings/info_config.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@
"SPLIT_OLED_ENABLE": {"info_key": "split.transport.sync.oled", "value_type": "flag"},
"SPLIT_ST7565_ENABLE": {"info_key": "split.transport.sync.st7565", "value_type": "flag"},
"SPLIT_WPM_ENABLE": {"info_key": "split.transport.sync.wpm", "value_type": "flag"},
"SERIAL_USART_FULL_DUPLEX": {"info_key": "serial.full_duplex", "value_type": "flag"},
"SERIAL_USART_TX_PIN": {"info_key": "serial.tx_pin"},
"SERIAL_USART_RX_PIN": {"info_key": "serial.rx_pin"},
"SERIAL_DEBUG": {"info_key": "serial.debug", "value_type": "flag"},

// Tapping
"HOLD_ON_OTHER_KEY_PRESS": {"info_key": "tapping.hold_on_other_key_press", "value_type": "flag"},
Expand Down
1 change: 1 addition & 0 deletions data/mappings/info_rules.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"WAIT_FOR_USB": {"info_key": "usb.wait_for", "value_type": "bool"},
"WEAR_LEVELING_DRIVER": {"info_key": "eeprom.wear_leveling.driver"},
"WS2812_DRIVER": {"info_key": "ws2812.driver"},
"SERIAL_DRIVER": {"info_key": "serial.driver"},

// Items we want flagged in lint
"CTPC": {"info_key": "_deprecated.ctpc", "deprecated": true, "replace_with": "CONVERT_TO=proton_c"},
Expand Down
14 changes: 14 additions & 0 deletions data/schemas/keyboard.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -919,5 +919,19 @@
"i2c_timeout": {"$ref": "qmk.definitions.v1#/unsigned_int"}
}
}
"serial": {
"type": "object",
"additionalProperties": false,
"properties": {
"driver": {
"type": "string",
"enum": ["bitbang", "vendor", "usart"]
},
"full_duplex": {"type": "boolean"}
"tx_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"},
"rx_pin": {"$ref": "qmk.definitions.v1#/mcu_pin"},
"debug": {"type": "boolean"}
}
},
}
}