Skip to content

Commit

Permalink
Merge split-data-xfer pr zmkfirmware#2036
Browse files Browse the repository at this point in the history
commit c0a3d49
Author: ReFil <[email protected]>
Date:   Mon Feb 12 13:44:56 2024 +0000

    fix(split): Update events and init function

commit f417665
Author: ReFil <[email protected]>
Date:   Wed Jan 10 13:39:18 2024 +0000

    feat(split): Add keymap state sending

commit 574ee4e
Author: ReFil <[email protected]>
Date:   Tue Dec 19 12:23:06 2023 +0000

    feat(split): Use split data transfer for hid indicators

commit a7fb050
Author: ReFil <[email protected]>
Date:   Fri Nov 24 18:32:47 2023 +0000

    feat(backlight): Use data transfer framework

commit 8d953ab
Author: ReFil <[email protected]>
Date:   Thu Nov 23 23:17:26 2023 +0000

    feat(rgb): Use data transfer framework

commit 5fc212f
Author: ReFil <[email protected]>
Date:   Thu Nov 23 23:13:35 2023 +0000

    fix(split): change peripheral to use work

commit ef8ab95
Author: ReFil <[email protected]>
Date:   Tue Nov 21 11:55:45 2023 +0000

    feat(split): Add data transfer event

commit ff7e0b7
Author: ReFil <[email protected]>
Date:   Tue Nov 21 09:40:56 2023 +0000

    feat(split): central to peripheral communication

commit 6ed14e9
Author: ReFil <[email protected]>
Date:   Mon Nov 20 13:03:56 2023 +0000

    feat(split): raise status changed events on central

commit 2ee76be
Author: German Gutierrez <[email protected]>
Date:   Mon May 13 23:43:35 2024 +0200

    fix(soft_off): central waits 100ms in split if hold_time enabled

commit f0b20c1
Author: Joel Spadin <[email protected]>
Date:   Fri Oct 13 13:07:55 2023 -0500

    feat(boards): Add nRF52 high voltage DC/DC config

    Added a Kconfig option to enable SOC_DCDC_NRF52X_HV for nice_nano_v2
    and mikoto. According to Nordic's documentation, the DC/DC regulator is
    more efficient than the LDO regulator, so this is enabled by default.

    The following boards do not support this mode and were not changed:

    - nice_nano
    - nice60
    - nrfmicro_11, nrfmicro_13
    - nrf52840_m2
    - bluemicro840

    I could not find schematics to confirm whether the following boards
    support this mode:

    - bt60_v1, bt60_v2
    - bt65_v1
    - bt75_v1
    - corneish_zen_v1, corneish_zen_v2
    - pillbug
    - puchi_ble_v1
    - s40nc

commit 8f5c7bb
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Feb 26 05:52:14 2024 +0000

    chore(deps): bump pre-commit/action from 3.0.0 to 3.0.1

    Bumps [pre-commit/action](https://github.com/pre-commit/action) from 3.0.0 to 3.0.1.
    - [Release notes](https://github.com/pre-commit/action/releases)
    - [Commits](pre-commit/action@v3.0.0...v3.0.1)

    ---
    updated-dependencies:
    - dependency-name: pre-commit/action
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>

commit 7d1f84e
Author: Horu <[email protected]>
Date:   Tue May 14 03:47:33 2024 +0700

    chore: fix typos in various places

commit 4dfc45d
Author: ReFil <[email protected]>
Date:   Fri May 3 19:17:09 2024 +0100

    feat(docs): Document example toggle-mode implementation

    ---------

    Co-authored-by: Cem Aksoylar <[email protected]>

commit 2423136
Author: ReFil <[email protected]>
Date:   Fri May 3 08:22:05 2024 +0100

    fix(boards): Fix pulls on ZMK uno toggle switch

    The devicetree pulls always add on to the extra pulls configured by toggle mode, so these should not have pulls defined in the devicetree. Saved ~200uA avg on another board with a 3t toggle switch

commit af90882
Author: Peter Johanson <[email protected]>
Date:   Wed May 1 11:01:32 2024 -0700

    fix: Initialize sideband kscan in APPLICATION.

    * In order to be sure the rest of the system is fully ready before
      intializing, because init may result in immediate events being
      triggered when used with toggle direct kscan inner devices.

commit d1ad347
Author: German Gutierrez <[email protected]>
Date:   Mon Apr 29 18:22:40 2024 +0200

    fix: shortening keymap_soft_off behavior node

    * Shorten the soft off node in order for it to work across splits.

commit 0d3a4b7
Author: Jarryd Tilbrook <[email protected]>
Date:   Thu Apr 25 22:26:26 2024 +0800

    fix(underglow): Correctly set underglow state

    This fixes a bug introduced in zmkfirmware#2244

commit 4d56685
Author: Pablo Martínez <[email protected]>
Date:   Thu Apr 25 10:55:42 2024 +0200

    fix(rgb): auto-off logic

commit f4a070a
Author: Sadek Baroudi <[email protected]>
Date:   Sun Apr 21 12:37:47 2024 -0700

    fix(boards): nrf boards missing SPI in pinctrl and dtsi, requiring users to manually define in their shield definitions if they wanted to use SPI

commit 16e92cf
Author: Peter Johanson <[email protected]>
Date:   Thu Apr 18 06:38:46 2024 +0000

    fix(behaviors): Add multiple soft-off instances properly.

    * Properly pass the node id for the unique
      soft-off behavior instance when defining it.

commit e22bc76
Author: Keeley Hoek <[email protected]>
Date:   Sun Apr 7 07:05:51 2024 -0400

    fix(hid): Correct off-by-one buffer overflow with NKRO

commit a9021de
Author: Cem Aksoylar <[email protected]>
Date:   Tue Apr 9 10:25:33 2024 -0700

    fix(docs): Add wakeup-source to split new shield example

commit dfc6dc8
Author: Cem Aksoylar <[email protected]>
Date:   Tue Feb 27 11:50:54 2024 -0800

    fix(docs): Make clear the matrix transform example is incomplete

commit 7a51a46
Author: Cem Aksoylar <[email protected]>
Date:   Tue Feb 27 11:41:46 2024 -0800

    feat(docs): Add pointer to shields folder in new shield docs

commit 849eca7
Author: Xudong Zheng <[email protected]>
Date:   Fri Feb 23 16:59:48 2024 -0500

    refactor(underglow): fix uninitialized variable warning
  • Loading branch information
b3n-l committed Jun 18, 2024
1 parent dbbeb70 commit d031252
Show file tree
Hide file tree
Showing 60 changed files with 608 additions and 167 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: pre-commit/[email protected].0
- uses: pre-commit/[email protected].1
1 change: 1 addition & 0 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ target_sources_ifdef(CONFIG_ZMK_BATTERY_REPORTING app PRIVATE src/battery.c)
target_sources_ifdef(CONFIG_ZMK_HID_INDICATORS app PRIVATE src/events/hid_indicators_changed.c)

target_sources_ifdef(CONFIG_ZMK_SPLIT app PRIVATE src/events/split_peripheral_status_changed.c)
target_sources_ifdef(CONFIG_ZMK_SPLIT app PRIVATE src/events/split_data_xfer_event.c)
add_subdirectory(src/split)

target_sources_ifdef(CONFIG_USB_DEVICE_STACK app PRIVATE src/usb.c)
Expand Down
4 changes: 2 additions & 2 deletions app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ config ZMK_BLE_EXPERIMENTAL_CONN
bool "Experimental BLE connection changes"
help
Enables a combination of settings that are planned to be default in future versions of ZMK
to improve connection stability. This includes changes to timing on BLE pairing initation,
to improve connection stability. This includes changes to timing on BLE pairing initiation,
restores use of the updated/new LLCP implementation, and disables 2M PHY support.

config ZMK_BLE_EXPERIMENTAL_SEC
Expand Down Expand Up @@ -257,7 +257,7 @@ menu "Display/LED Options"
rsource "src/display/Kconfig"

menuconfig ZMK_RGB_UNDERGLOW
bool "RGB Adressable LED Underglow"
bool "RGB Addressable LED Underglow"
select LED_STRIP
select ZMK_LOW_PRIORITY_WORK_QUEUE

Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/bluemicro840/arduino_pro_micro_pins.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@

pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
pro_micro_spi: &spi0 {};
pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
17 changes: 17 additions & 0 deletions app/boards/arm/bluemicro840/bluemicro840_v1-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,21 @@
low-power-enable;
};
};

spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
<NRF_PSEL(SPIM_MOSI, 0, 28)>,
<NRF_PSEL(SPIM_MISO, 0, 3)>;
};
};

spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
<NRF_PSEL(SPIM_MOSI, 0, 28)>,
<NRF_PSEL(SPIM_MISO, 0, 3)>;
low-power-enable;
};
};
};
7 changes: 7 additions & 0 deletions app/boards/arm/bluemicro840/bluemicro840_v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@
pinctrl-names = "default", "sleep";
};

&spi1 {
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
};

&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/corneish_zen/corneish_zen_v1_left.dts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
fuelgauge: bq274xx@55 {
compatible = "ti,bq274xx";
reg = <0x55>;
design-voltage = <3700>; //Battery Design Volatge in mV
design-voltage = <3700>; //Battery Design Voltage in mV
design-capacity = <180>; //Battery Design Capacity in mAh
taper-current = <2>; //Battery Taper current in mAh
terminate-voltage = <2750>; //Battery Terminate Voltage in mV
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/corneish_zen/corneish_zen_v1_right.dts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
fuelgauge: bq274xx@55 {
compatible = "ti,bq274xx";
reg = <0x55>;
design-voltage = <3700>; //Battery Design Volatge in mV
design-voltage = <3700>; //Battery Design Voltage in mV
design-capacity = <180>; //Battery Design Capacity in mAh
taper-current = <2>; //Battery Taper current in mAh 2.1
terminate-voltage = <2750>; //Battery Terminate Voltage in mV
Expand Down
6 changes: 6 additions & 0 deletions app/boards/arm/mikoto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ config BOARD_ENABLE_DCDC
default y
depends on (BOARD_MIKOTO_520)

config BOARD_ENABLE_DCDC_HV
bool "High voltage DCDC converter"
select SOC_DCDC_NRF52X_HV
default y
depends on (BOARD_MIKOTO_520)

choice BOARD_MIKOTO_CHARGER_CURRENT
prompt "Charge current to supply to attached batteries"
depends on (BOARD_MIKOTO_520)
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/mikoto/arduino_pro_micro_pins.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@

pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
pro_micro_spi: &spi0 {};
pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
17 changes: 17 additions & 0 deletions app/boards/arm/mikoto/mikoto_520-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,21 @@
low-power-enable;
};
};

spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 2)>,
<NRF_PSEL(SPIM_MOSI, 0, 10)>,
<NRF_PSEL(SPIM_MISO, 1, 13)>;
};
};

spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 2)>,
<NRF_PSEL(SPIM_MOSI, 0, 10)>,
<NRF_PSEL(SPIM_MISO, 1, 13)>;
low-power-enable;
};
};
};
7 changes: 7 additions & 0 deletions app/boards/arm/mikoto/mikoto_520.dts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@
pinctrl-names = "default", "sleep";
};

&spi1 {
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
};

&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
Expand Down
6 changes: 6 additions & 0 deletions app/boards/arm/nice_nano/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ config BOARD_ENABLE_DCDC
select SOC_DCDC_NRF52X
default y
depends on (BOARD_NICE_NANO || BOARD_NICE_NANO_V2)

config BOARD_ENABLE_DCDC_HV
bool "High voltage DCDC converter"
select SOC_DCDC_NRF52X_HV
default y
depends on (BOARD_NICE_NANO_V2)
2 changes: 1 addition & 1 deletion app/boards/arm/nice_nano/arduino_pro_micro_pins.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@

pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
pro_micro_spi: &spi0 {};
pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
17 changes: 17 additions & 0 deletions app/boards/arm/nice_nano/nice_nano-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,21 @@
low-power-enable;
};
};

spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
<NRF_PSEL(SPIM_MOSI, 0, 10)>,
<NRF_PSEL(SPIM_MISO, 1, 11)>;
};
};

spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
<NRF_PSEL(SPIM_MOSI, 0, 10)>,
<NRF_PSEL(SPIM_MISO, 1, 11)>;
low-power-enable;
};
};
};
7 changes: 7 additions & 0 deletions app/boards/arm/nice_nano/nice_nano.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
pinctrl-names = "default", "sleep";
};

&spi1 {
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
};

&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/nrfmicro/arduino_pro_micro_pins.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@

pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
pro_micro_spi: &spi0 {};
pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
2 changes: 1 addition & 1 deletion app/boards/arm/nrfmicro/arduino_pro_micro_pins_52833.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@

pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
pro_micro_spi: &spi0 {};
pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@

pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
pro_micro_spi: &spi0 {};
pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
17 changes: 17 additions & 0 deletions app/boards/arm/nrfmicro/nrfmicro-flipped-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,21 @@
low-power-enable;
};
};

spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 9)>,
<NRF_PSEL(SPIM_MOSI, 0, 10)>,
<NRF_PSEL(SPIM_MISO, 1, 6)>;
};
};

spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 9)>,
<NRF_PSEL(SPIM_MOSI, 0, 10)>,
<NRF_PSEL(SPIM_MISO, 1, 6)>;
low-power-enable;
};
};
};
17 changes: 17 additions & 0 deletions app/boards/arm/nrfmicro/nrfmicro-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,21 @@
low-power-enable;
};
};

spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
<NRF_PSEL(SPIM_MOSI, 0, 28)>,
<NRF_PSEL(SPIM_MISO, 0, 3)>;
};
};

spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
<NRF_PSEL(SPIM_MOSI, 0, 28)>,
<NRF_PSEL(SPIM_MISO, 0, 3)>;
low-power-enable;
};
};
};
7 changes: 7 additions & 0 deletions app/boards/arm/nrfmicro/nrfmicro_11.dts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@
pinctrl-names = "default", "sleep";
};

&spi1 {
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
};

&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
Expand Down
7 changes: 7 additions & 0 deletions app/boards/arm/nrfmicro/nrfmicro_11_flipped.dts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@
pinctrl-names = "default", "sleep";
};

&spi1 {
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
};

&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
Expand Down
7 changes: 7 additions & 0 deletions app/boards/arm/nrfmicro/nrfmicro_13.dts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@
pinctrl-names = "default", "sleep";
};

&spi1 {
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
};

&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
Expand Down
7 changes: 7 additions & 0 deletions app/boards/arm/nrfmicro/nrfmicro_13_52833.dts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@
pinctrl-names = "default", "sleep";
};

&spi1 {
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
};

&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
Expand Down
2 changes: 1 addition & 1 deletion app/boards/interconnects/seeed_xiao/seeed_xiao.zmk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type: interconnect
url: https://wiki.seeedstudio.com/Seeeduino-XIAO/
manufacturer: Seeed
description: |
The Seeed(uino) XIAO is a popular smaller format micro-controller, that has gained popularity as an alterative
The Seeed(uino) XIAO is a popular smaller format micro-controller, that has gained popularity as an alternative
to the SparkFun Pro Micro. Since its creation, several pin compatible controllers, such
as the Seeeduino XIAO BLE, Adafruit QT Py and Adafruit QT Py RP2040, have become available.
node_labels:
Expand Down
6 changes: 3 additions & 3 deletions app/boards/shields/zmk_uno/zmk_uno.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ nice_view_spi: &arduino_spi {
toggle-mode;

input-gpios
= <&arduino_header 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
, <&arduino_header 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
, <&arduino_header 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
= <&arduino_header 4 GPIO_ACTIVE_LOW>
, <&arduino_header 3 GPIO_ACTIVE_LOW>
, <&arduino_header 2 GPIO_ACTIVE_LOW>
;
};

Expand Down
2 changes: 1 addition & 1 deletion app/dts/behaviors/soft_off.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/ {
behaviors {
/omit-if-no-ref/ soft_off: keymap_soft_off {
/omit-if-no-ref/ soft_off: z_so_off {
compatible = "zmk,behavior-soft-off";
#binding-cells = <0>;
split-peripheral-off-on-press;
Expand Down
2 changes: 1 addition & 1 deletion app/dts/common/arduino_uno_pro_micro_map.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: MIT
*/

/* This provies a mapping from Arduino Uno to Arduino Pro Micro pins for development */
/* This provides a mapping from Arduino Uno to Arduino Pro Micro pins for development */

/ {
pro_micro_d: connector_d {
Expand Down
6 changes: 3 additions & 3 deletions app/include/zmk/display.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ int zmk_display_init(void);
*
* @param listener THe ZMK Event manager listener name.
* @param state_type The struct/enum type used to store/transfer state.
* @param cb The callback to invoke in the dispaly queue context to update the UI. Should be `void
* @param cb The callback to invoke in the display queue context to update the UI. Should be `void
* func(state_type)` signature.
* @param state_func The callback function to invoke to fetch the updated state from ZMK core.
* Should be `state type func(const zmk_event_t *eh)` signature.
* @retval listner##_init Generates a function `listener##_init` that should be called by the widget
* once ready to be updated.
* @retval listener##_init Generates a function `listener##_init` that should be called by the
* widget once ready to be updated.
**/
#define ZMK_DISPLAY_WIDGET_LISTENER(listener, state_type, cb, state_func) \
K_MUTEX_DEFINE(listener##_mutex); \
Expand Down
17 changes: 17 additions & 0 deletions app/include/zmk/events/split_data_xfer_event.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright (c) 2023 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

#pragma once

#include <zephyr/kernel.h>
#include <zmk/event_manager.h>
#include <zmk/split/bluetooth/service.h>

struct zmk_split_data_xfer_event {
struct zmk_split_data_xfer_data data_xfer;
};

ZMK_EVENT_DECLARE(zmk_split_data_xfer_event);
Loading

0 comments on commit d031252

Please sign in to comment.