forked from kofal.net/zmk
feat(split): Runtime selection of split transport (#2886)
feat(split): Runtime selection of split transport Allow building multiple split transports, and select an active one based on the transport availability. Wired split availability depends on additional `detect-gpios` which must be a GPIO pin that goes active when a wired connection is present. feat(split): Suspend/resume wired UART devices. To better support runtime split support, suspend/resume the UART as necessary to save power when not using the UART. docs(split): Document adjusting nRF52 UART interrupt priorities For wired split on nRF52, you may need to adjust the priority for UART interrupts lower, to ensure the interrupts used for timing sensitive BT operations can run when needed, so document this in our pinctrl docs. refactor(split): Restore use of aync UART on nRF52. With fixes for Zephyr UART driver, re-enable using async API on nRF52. fix(split): Minor wired split fixes. Various minor fixes for wired split to avoid spurious TX in half duplex, etc. fix: Unconditionally define HID payloads to avoid error. Don't conditionally define HID indicator payload, to avoid compilation errors. docs(split): Expand on details of split transports. Expand the split keyboard documentation with a more fleshed out section on the available split trasnports, and what is and isn't supported by each, including the runtime selection functionality. --------- Co-authored-by: Nicolas Munnich <98408764+nmunnich@users.noreply.github.com>
This commit is contained in:
@@ -86,8 +86,10 @@ struct zmk_split_wired_async_state {
|
||||
const struct gpio_dt_spec *dir_gpio;
|
||||
};
|
||||
|
||||
void zmk_split_wired_async_tx(struct zmk_split_wired_async_state *state);
|
||||
int zmk_split_wired_async_init(struct zmk_split_wired_async_state *state);
|
||||
void zmk_split_wired_async_tx(struct zmk_split_wired_async_state *state);
|
||||
int zmk_split_wired_async_rx(struct zmk_split_wired_async_state *state);
|
||||
int zmk_split_wired_async_rx_cancel(struct zmk_split_wired_async_state *state);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user