diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-07-20 23:14:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 23:14:48 -0400 |
commit | 25509adef7fe36e1fde794851922ae07216046ab (patch) | |
tree | b00dbd6bb2237640e1fca2d77cd027170c8a1c93 /app/include | |
parent | f6110a632d0ddbc0a9ebd7bfd4997366f95facfd (diff) | |
parent | c4d3c03eb069c814321ab49a809dc584f1819b34 (diff) |
Merge pull request #56 from petejohanson/core/split-ble-infrastructure
Initial split BLE infrastructure.
Diffstat (limited to 'app/include')
-rw-r--r-- | app/include/zmk/split/bluetooth/service.h | 4 | ||||
-rw-r--r-- | app/include/zmk/split/bluetooth/uuid.h | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/app/include/zmk/split/bluetooth/service.h b/app/include/zmk/split/bluetooth/service.h new file mode 100644 index 0000000..954e0cd --- /dev/null +++ b/app/include/zmk/split/bluetooth/service.h @@ -0,0 +1,4 @@ +#pragma once + +int zmk_split_bt_position_pressed(u8_t position); +int zmk_split_bt_position_released(u8_t position);
\ No newline at end of file diff --git a/app/include/zmk/split/bluetooth/uuid.h b/app/include/zmk/split/bluetooth/uuid.h new file mode 100644 index 0000000..59f2f71 --- /dev/null +++ b/app/include/zmk/split/bluetooth/uuid.h @@ -0,0 +1,12 @@ +#pragma once + +#include <bluetooth/uuid.h> + +#ifndef BT_UUID_NUM_OF_DIGITALS +#define BT_UUID_NUM_OF_DIGITALS BT_UUID_DECLARE_16(0x2909) +#endif + +#define ZMK_BT_SPLIT_UUID(num) BT_UUID_128_ENCODE(num, 0x0096, 0x7107, 0xc967, 0xc5cfb1c2482a) +#define ZMK_SPLIT_BT_SERVICE_UUID ZMK_BT_SPLIT_UUID(0x00000000) +#define ZMK_SPLIT_BT_CHAR_POSITION_STATE_UUID ZMK_BT_SPLIT_UUID(0x00000001) + |