Skip to content

Commit

Permalink
TODO TODO TODO: remove transport choice
Browse files Browse the repository at this point in the history
  • Loading branch information
xudongzheng committed Dec 23, 2023
1 parent f5d9903 commit b415f86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions app/src/split/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ if ZMK_SPLIT
config ZMK_SPLIT_ROLE_CENTRAL
bool "Split central device"

choice ZMK_SPLIT_TRANSPORT
prompt "Split transport"

config ZMK_SPLIT_BLE
bool "BLE"
depends on ZMK_BLE
Expand All @@ -20,10 +17,9 @@ config ZMK_SPLIT_BLE

config ZMK_SPLIT_SERIAL
bool "Serial"
default n
select RING_BUFFER

endchoice

config ZMK_SPLIT_PERIPHERAL_HID_INDICATORS
bool "Peripheral HID Indicators"
depends on ZMK_HID_INDICATORS
Expand Down
1 change: 0 additions & 1 deletion app/src/split/serial/central.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@ void serial_handle_rx(uint32_t cmd, uint8_t *data, uint8_t len) {
break;
}
}

3 changes: 2 additions & 1 deletion app/src/split/serial/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ static int serial_init() {
#ifdef CONFIG_ZMK_SPLIT_SERIAL_UART_POLLING
// TODO TODO TODO define kconfig for prio. nrf52 max 14.
struct k_work_queue_config uart_tx_cfg = {.name = "uart_tx_wq"};
k_work_queue_start(&uart_tx_wq, uart_tx_wq_stack, K_THREAD_STACK_SIZEOF(uart_tx_wq_stack), 14, &uart_tx_cfg);
k_work_queue_start(&uart_tx_wq, uart_tx_wq_stack, K_THREAD_STACK_SIZEOF(uart_tx_wq_stack), 14,
&uart_tx_cfg);
#endif

for (int i = 0; i < CONFIG_ZMK_SPLIT_SERIAL_COUNT; i++) {
Expand Down

0 comments on commit b415f86

Please sign in to comment.