Fix serial speed DD configuration & migrate keyboards (#25546)
* Fix serial speed DD configuration - Fixes incorrect SOFT_SERIAL_SPEED mapping - Renames key split.soft_serial_speed -> split.serial.speed - Migrates keyoards that configure this, and remove configuration from keyboards that do not differ from the default behaviour - Add deprecation notice and migration support
This commit is contained in:
parent
6c2e58eb4d
commit
12dc6d1ac8
@ -184,7 +184,7 @@
|
|||||||
|
|
||||||
// Split Keyboard
|
// Split Keyboard
|
||||||
"SOFT_SERIAL_PIN": {"info_key": "split.serial.pin"},
|
"SOFT_SERIAL_PIN": {"info_key": "split.serial.pin"},
|
||||||
"SOFT_SERIAL_SPEED": {"info_key": "split.soft_serial_speed"},
|
"SELECT_SOFT_SERIAL_SPEED": {"info_key": "split.serial.speed"},
|
||||||
"SPLIT_HAND_MATRIX_GRID": {"info_key": "split.handedness.matrix_grid", "value_type": "array", "to_c": false},
|
"SPLIT_HAND_MATRIX_GRID": {"info_key": "split.handedness.matrix_grid", "value_type": "array", "to_c": false},
|
||||||
"SPLIT_HAND_PIN": {"info_key": "split.handedness.pin"},
|
"SPLIT_HAND_PIN": {"info_key": "split.handedness.pin"},
|
||||||
"SPLIT_USB_DETECT": {"info_key": "split.usb_detect.enabled", "value_type": "flag"},
|
"SPLIT_USB_DETECT": {"info_key": "split.usb_detect.enabled", "value_type": "flag"},
|
||||||
|
|||||||
@ -864,8 +864,7 @@
|
|||||||
},
|
},
|
||||||
"soft_serial_speed": {
|
"soft_serial_speed": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minimum": 0,
|
"$comment": "Deprecated: use split.serial.speed instead"
|
||||||
"maximum": 5
|
|
||||||
},
|
},
|
||||||
"serial": {
|
"serial": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@ -875,7 +874,12 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["bitbang", "usart", "vendor"]
|
"enum": ["bitbang", "usart", "vendor"]
|
||||||
},
|
},
|
||||||
"pin": {"$ref": "./definitions.jsonschema#/mcu_pin"}
|
"pin": {"$ref": "./definitions.jsonschema#/mcu_pin"},
|
||||||
|
"speed": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 5
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"transport": {
|
"transport": {
|
||||||
|
|||||||
@ -753,9 +753,9 @@ Configures the [Split Keyboard](features/split_keyboard) feature.
|
|||||||
* Default: `"bitbang"`
|
* Default: `"bitbang"`
|
||||||
* `pin` <Badge type="info">Pin</Badge>
|
* `pin` <Badge type="info">Pin</Badge>
|
||||||
* The GPIO pin to use for transmit and receive.
|
* The GPIO pin to use for transmit and receive.
|
||||||
* `soft_serial_speed` <Badge type="info">Number</Badge>
|
* `speed` <Badge type="info">Number</Badge>
|
||||||
* The protocol speed, from `0` to `5` (`serial` transport protocol only).
|
* The protocol speed, from `0` to `5` (fastest to slowest).
|
||||||
* Default: `1`
|
* Default: `1`
|
||||||
* `transport`
|
* `transport`
|
||||||
* `protocol` <Badge type="info">String</Badge>
|
* `protocol` <Badge type="info">String</Badge>
|
||||||
* The split transport protocol to use. Must be one of `custom`, `i2c`, `serial`.
|
* The split transport protocol to use. Must be one of `custom`, `i2c`, `serial`.
|
||||||
|
|||||||
@ -1,19 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2021 Spencer Deven <splitlogicdesign@gmail.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
@ -18,7 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
// #define USE_I2C
|
// #define USE_I2C
|
||||||
#define SPLIT_USB_DETECT
|
#define SPLIT_USB_DETECT
|
||||||
#define SPLIT_USB_TIMEOUT 500
|
#define SPLIT_USB_TIMEOUT 500
|
||||||
|
|||||||
@ -17,16 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
|
|
||||||
// Right side has to be the master since 1, LED data is output from right side, and 2, Audio pin is prepared on right side as a reserve.
|
// Right side has to be the master since 1, LED data is output from right side, and 2, Audio pin is prepared on right side as a reserve.
|
||||||
#define MASTER_RIGHT
|
#define MASTER_RIGHT
|
||||||
|
|
||||||
|
|||||||
@ -25,13 +25,6 @@
|
|||||||
#define SERIAL_USART_RX_PIN B7 // USART RX pin
|
#define SERIAL_USART_RX_PIN B7 // USART RX pin
|
||||||
#define SERIAL_USART_TX_PIN B6 // USART TX pin
|
#define SERIAL_USART_TX_PIN B6 // USART TX pin
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1 // or 0, 2, 3, 4, 5
|
|
||||||
// 0: 460800 baud
|
|
||||||
// 1: 230400 baud (default)
|
|
||||||
// 2: 115200 baud
|
|
||||||
// 3: 57600 baud
|
|
||||||
// 4: 38400 baud
|
|
||||||
// 5: 19200 baud
|
|
||||||
#define SERIAL_USART_DRIVER SD1 // USART driver of TX and RX pin. default: SD1
|
#define SERIAL_USART_DRIVER SD1 // USART driver of TX and RX pin. default: SD1
|
||||||
#define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
|
#define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
|
||||||
#define SERIAL_USART_RX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
|
#define SERIAL_USART_RX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
// Comunication and Split Detection
|
// Comunication and Split Detection
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
#define SPLIT_USB_DETECT
|
#define SPLIT_USB_DETECT
|
||||||
#define EE_HANDS
|
#define EE_HANDS
|
||||||
#define SPLIT_USB_TIMEOUT 1000
|
#define SPLIT_USB_TIMEOUT 1000
|
||||||
|
|||||||
@ -15,8 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
|
|
||||||
// Feature diable options
|
// Feature diable options
|
||||||
//#define NO_DEBUG
|
//#define NO_DEBUG
|
||||||
//#define NO_PRINT
|
//#define NO_PRINT
|
||||||
|
|||||||
@ -21,7 +21,6 @@
|
|||||||
#define AUDIO_PIN_ALT A4
|
#define AUDIO_PIN_ALT A4
|
||||||
#define AUDIO_PIN_ALT_AS_NEGATIVE
|
#define AUDIO_PIN_ALT_AS_NEGATIVE
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
#define SERIAL_USART_DRIVER SD1
|
#define SERIAL_USART_DRIVER SD1
|
||||||
#define SERIAL_USART_TX_PAL_MODE 7
|
#define SERIAL_USART_TX_PAL_MODE 7
|
||||||
#define SERIAL_USART_TIMEOUT 100
|
#define SERIAL_USART_TIMEOUT 100
|
||||||
|
|||||||
@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
|
|
||||||
# ifndef IOS_DEVICE_ENABLE
|
# ifndef IOS_DEVICE_ENABLE
|
||||||
# define RGBLIGHT_VAL_STEP 16
|
# define RGBLIGHT_VAL_STEP 16
|
||||||
# define RGBLIGHT_LIMIT_VAL 128 /* The maximum brightness level */
|
# define RGBLIGHT_LIMIT_VAL 128 /* The maximum brightness level */
|
||||||
|
|||||||
@ -17,7 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 5
|
|
||||||
|
|
||||||
#define SPLIT_USB_DETECT
|
#define SPLIT_USB_DETECT
|
||||||
#define EE_HANDS
|
#define EE_HANDS
|
||||||
|
|||||||
@ -28,7 +28,8 @@
|
|||||||
"split": {
|
"split": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"serial": {
|
"serial": {
|
||||||
"pin": "D1"
|
"pin": "D1",
|
||||||
|
"speed": 5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
|
|||||||
@ -19,13 +19,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define AUDIO_PIN C6
|
#define AUDIO_PIN C6
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
|
|||||||
@ -19,13 +19,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define AUDIO_PIN C6
|
#define AUDIO_PIN C6
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
|
|||||||
@ -1,27 +0,0 @@
|
|||||||
/* Copyright 2019 omkbd
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
/* Copyright 2019 omkbd
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
/* Copyright 2019 omkbd
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
/* Copyright 2019 omkbd
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
/* Copyright 2019 omkbd
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
/* Copyright 2019 omkbd
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
/* Copyright 2019 omkbd
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
/* Copyright 2021 omkbd
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
/* Copyright 2019 omkbd
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
/* Copyright 2019 omkbd
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
/*Sets the protocol speed when using serial communication*/
|
|
||||||
//Speeds:
|
|
||||||
//0: about 189kbps (Experimental only)
|
|
||||||
//1: about 137kbps (default)
|
|
||||||
//2: about 75kbps
|
|
||||||
//3: about 39kbps
|
|
||||||
//4: about 26kbps
|
|
||||||
//5: about 20kbps
|
|
||||||
@ -13,13 +13,6 @@
|
|||||||
|
|
||||||
#define SERIAL_USART_PIN_SWAP // Swap TX and RX pins if keyboard is master halve.
|
#define SERIAL_USART_PIN_SWAP // Swap TX and RX pins if keyboard is master halve.
|
||||||
// Check if this feature is necessary with your keyboard design and available on the mcu.
|
// Check if this feature is necessary with your keyboard design and available on the mcu.
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1 // or 0, 2, 3, 4, 5
|
|
||||||
// 0: 460800 baud
|
|
||||||
// 1: 230400 baud (default)
|
|
||||||
// 2: 115200 baud
|
|
||||||
// 3: 57600 baud
|
|
||||||
// 4: 38400 baud
|
|
||||||
// 5: 19200 baud
|
|
||||||
#define SERIAL_USART_DRIVER SD1 // USART driver of TX and RX pin. default: SD1
|
#define SERIAL_USART_DRIVER SD1 // USART driver of TX and RX pin. default: SD1
|
||||||
#define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
|
#define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
|
||||||
#define SERIAL_USART_RX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
|
#define SERIAL_USART_RX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
|
||||||
|
|||||||
@ -15,8 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 1
|
|
||||||
|
|
||||||
#define WS2812_PWM_DRIVER PWMD3
|
#define WS2812_PWM_DRIVER PWMD3
|
||||||
#define WS2812_PWM_CHANNEL 4
|
#define WS2812_PWM_CHANNEL 4
|
||||||
#define WS2812_PWM_PAL_MODE 2
|
#define WS2812_PWM_PAL_MODE 2
|
||||||
|
|||||||
@ -17,10 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef SELECT_SOFT_SERIAL_SPEED
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 3
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||||
* This is useful for the Windows task manager shortcut (ctrl+shift+esc).
|
* This is useful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -34,7 +34,8 @@
|
|||||||
"split": {
|
"split": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"serial": {
|
"serial": {
|
||||||
"pin": "D0"
|
"pin": "D0",
|
||||||
|
"speed": 3
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"development_board": "promicro",
|
"development_board": "promicro",
|
||||||
|
|||||||
@ -2,8 +2,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define SELECT_SOFT_SERIAL_SPEED 0
|
|
||||||
|
|
||||||
#define WS2812_PWM_DRIVER PWMD3
|
#define WS2812_PWM_DRIVER PWMD3
|
||||||
#define WS2812_PWM_CHANNEL 1
|
#define WS2812_PWM_CHANNEL 1
|
||||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM3
|
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM3
|
||||||
|
|||||||
@ -27,7 +27,8 @@
|
|||||||
},
|
},
|
||||||
"serial": {
|
"serial": {
|
||||||
"driver": "usart",
|
"driver": "usart",
|
||||||
"pin": "B6"
|
"pin": "B6",
|
||||||
|
"speed": 0
|
||||||
},
|
},
|
||||||
"bootmagic": {
|
"bootmagic": {
|
||||||
"matrix": [4, 0]
|
"matrix": [4, 0]
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
//#define SELECT_SOFT_SERIAL_SPEED 0
|
|
||||||
#define SERIAL_USART_SPEED 921600
|
#define SERIAL_USART_SPEED 921600
|
||||||
|
|
||||||
#define WS2812_PWM_DRIVER PWMD3
|
#define WS2812_PWM_DRIVER PWMD3
|
||||||
|
|||||||
@ -477,6 +477,9 @@ def _extract_split_serial(info_data, config_c):
|
|||||||
if 'soft_serial_pin' in split:
|
if 'soft_serial_pin' in split:
|
||||||
split['serial'] = split.get('serial', {})
|
split['serial'] = split.get('serial', {})
|
||||||
split['serial']['pin'] = split.pop('soft_serial_pin')
|
split['serial']['pin'] = split.pop('soft_serial_pin')
|
||||||
|
if 'soft_serial_speed' in split:
|
||||||
|
split['serial'] = split.get('serial', {})
|
||||||
|
split['serial']['speed'] = split.pop('soft_serial_speed')
|
||||||
|
|
||||||
|
|
||||||
def _extract_split_transport(info_data, config_c):
|
def _extract_split_transport(info_data, config_c):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user