diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-07-02 23:34:11 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-07-17 22:43:40 -0400 |
commit | be537d06565a38f5fcca8d5a1d0a7b7350b35d51 (patch) | |
tree | 7328b80497cf1edd8ad8efdba8fa804070235ef0 /app/include | |
parent | a165db63586f37531d5050623bc5a7bc96793d49 (diff) |
Lots of work on split peripheral/central logic.
Diffstat (limited to 'app/include')
-rw-r--r-- | app/include/zmk/split/bluetooth/central.h | 2 | ||||
-rw-r--r-- | app/include/zmk/split/bluetooth/uuid.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/include/zmk/split/bluetooth/central.h b/app/include/zmk/split/bluetooth/central.h new file mode 100644 index 0000000..09a7161 --- /dev/null +++ b/app/include/zmk/split/bluetooth/central.h @@ -0,0 +1,2 @@ + +int zmk_split_bt_central_init();
\ No newline at end of file diff --git a/app/include/zmk/split/bluetooth/uuid.h b/app/include/zmk/split/bluetooth/uuid.h index 4fa7f40..59f2f71 100644 --- a/app/include/zmk/split/bluetooth/uuid.h +++ b/app/include/zmk/split/bluetooth/uuid.h @@ -6,9 +6,7 @@ #define BT_UUID_NUM_OF_DIGITALS BT_UUID_DECLARE_16(0x2909) #endif -#define ZMK_SPLIT_BT_BASE_UUID 0x2a, 0x48, 0xc2, 0xb1, 0xcf, 0xc5, 0x67, 0xc9, 0x07, 0x71, 0x96, 0x00 -#define ZMK_SPLIT_BT_SERVICE_UUID ZMK_SPLIT_BT_BASE_UUID, 0x00, 0x00, 0x00, 0x00 -#define ZMK_SPLIT_BT_CHAR_POSITION_STATE_UUID ZMK_SPLIT_BT_BASE_UUID, 0x01, 0x00, 0x00, 0x00 +#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) -#define ZMK_BT_UUID_SPLIT BT_UUID_DECLARE_128(ZMK_SPLIT_BT_SERVICE_UUID) -#define ZMK_BT_UUID_SPLIT_POS_STATE BT_UUID_DECLARE_128(ZMK_SPLIT_BT_CHAR_POSITION_STATE_UUID) |