summaryrefslogtreecommitdiff
path: root/app/include/zmk/split/bluetooth/uuid.h
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-07-20 23:14:48 -0400
committerGitHub <noreply@github.com>2020-07-20 23:14:48 -0400
commit25509adef7fe36e1fde794851922ae07216046ab (patch)
treeb00dbd6bb2237640e1fca2d77cd027170c8a1c93 /app/include/zmk/split/bluetooth/uuid.h
parentf6110a632d0ddbc0a9ebd7bfd4997366f95facfd (diff)
parentc4d3c03eb069c814321ab49a809dc584f1819b34 (diff)
Merge pull request #56 from petejohanson/core/split-ble-infrastructure
Initial split BLE infrastructure.
Diffstat (limited to 'app/include/zmk/split/bluetooth/uuid.h')
-rw-r--r--app/include/zmk/split/bluetooth/uuid.h12
1 files changed, 12 insertions, 0 deletions
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)
+