mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-28 17:05:18 -05:00
refactor(split): Refactor split code for extension Extract central/peripheral code to allow for plugging in alternate transports, instead of tying all split logic to BT. feat(split): Add full-duplex wired split support * Depends on full-duplex hardware UART for communication. * Supports all existing central commands/peripheral events, including sensors/inputs from peripherals. * Only one wired split peripheral supported (for now) * Relies on chosen `zmk,split-uart` referencing the UART device. docs: Add wired split config docs. Migrate split to its own dedicated config file, and add details on wired split config. Co-authored-by: Nicolas Munnich <98408764+Nick-Munnich@users.noreply.github.com> fix: Properly override stack size on RP2040 Move the system work queue stack size override on RP2040 ouf of a `ZMK_BLE` conditional so it is properly applied generally for that SoC. --------- Co-authored-by: Nicolas Munnich <98408764+Nick-Munnich@users.noreply.github.com>
18 lines
521 B
CMake
18 lines
521 B
CMake
# Copyright (c) 2022 The ZMK Contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
if (CONFIG_ZMK_SPLIT_BLE)
|
|
add_subdirectory(bluetooth)
|
|
endif()
|
|
|
|
if (CONFIG_ZMK_SPLIT_WIRED)
|
|
add_subdirectory(wired)
|
|
endif()
|
|
|
|
if (CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
|
|
target_sources(app PRIVATE central.c)
|
|
zephyr_linker_sources(SECTIONS ../../include/linker/zmk-split-transport-central.ld)
|
|
else()
|
|
target_sources(app PRIVATE peripheral.c)
|
|
zephyr_linker_sources(SECTIONS ../../include/linker/zmk-split-transport-peripheral.ld)
|
|
endif() |