Compare commits

...
Sign in to create a new pull request.
Author SHA1 Message Date
zvecr
096482164c Implement data driven serial driver 2024-06-15 02:32:53 +01:00
6 changed files with 18 additions and 2 deletions

View file

@ -41,6 +41,7 @@
"RGB_MATRIX_DRIVER": {"info_key": "rgb_matrix.driver"},
"RGBLIGHT_DRIVER": {"info_key": "rgblight.driver"},
"SECURE_ENABLE": {"info_key": "secure.enabled", "value_type": "bool"},
"SERIAL_DRIVER": {"info_key": "split.serial.driver"},
"SPLIT_KEYBOARD": {"info_key": "split.enabled", "value_type": "bool"},
"SPLIT_TRANSPORT": {"info_key": "split.transport.protocol", "to_c": false},
"STENO_ENABLE": {"info_key": "stenography.enabled", "value_type": "bool"},

View file

@ -799,6 +799,16 @@
"minimum": 0,
"maximum": 5
},
"serial": {
"type": "object",
"additionalProperties": false,
"properties": {
"driver": {
"type": "string",
"enum": ["bitbang", "usart", "vendor"]
}
}
},
"transport": {
"type": "object",
"additionalProperties": false,

View file

@ -732,6 +732,10 @@ Configures the [Split Keyboard](features/split_keyboard) feature.
* `matrix_pins`
* `right`
* See [Matrix](#matrix) config.
* `serial`
* `driver`
* The driver to use. Must be one of `bitbang`, `usart`, `vendor`.
* Default: `"bitbang"`
* `soft_serial_pin`
* The GPIO pin to use (`serial` transport protocol only).
* `soft_serial_speed`

View file

@ -1 +0,0 @@
SERIAL_DRIVER = usart

View file

@ -1 +0,0 @@
SERIAL_DRIVER = usart

View file

@ -53,6 +53,9 @@
"handedness": {
"pin": "B9"
},
"serial": {
"driver": "usart"
},
"soft_serial_pin": "B6",
"bootmagic": {
"matrix": [4, 0]