forked from kofal.net/zmk
fix(bluetooth): Remove identity, minimal bt.
* Simplify the `bt` behavior to one current command `BT_CLEAR_BONDS_CMD`. * Simplify BLE code for split and non-split keyboards. * Remove keymap processing from split peripheral side.
This commit is contained in:
@@ -4,14 +4,11 @@
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#define BT_RST_CMD 0
|
||||
#define BT_IDENT_NEXT_CMD 1
|
||||
#define BT_IDENT_PREV_CMD 2
|
||||
#define BT_IDENT_SEL_CMD 3
|
||||
#define BT_IDENT_CLR_CMD 4
|
||||
#define BT_CLEAR_BONDS_CMD 0
|
||||
|
||||
#define BT_RST BT_RST_CMD 0
|
||||
#define BT_IDENT_NEXT BT_IDENT_NEXT_CMD 0
|
||||
#define BT_IDENT_PREV BT_IDENT_PREV_CMD 0
|
||||
#define BT_IDENT_SEL BT_IDENT_SEL_CMD
|
||||
#define BT_IDENT_CLR BT_IDENT_CLR_CMD 0
|
||||
/*
|
||||
Note: Some future commands will include additional parameters, so we
|
||||
defines these aliases up front.
|
||||
*/
|
||||
|
||||
#define BT_CLEAR_BONDS BT_CLEAR_BONDS_CMD 0
|
||||
@@ -9,13 +9,8 @@
|
||||
#include <bluetooth/addr.h>
|
||||
#include <zmk/keys.h>
|
||||
|
||||
int zmk_ble_adv_pause();
|
||||
int zmk_ble_adv_resume();
|
||||
|
||||
int zmk_ble_identity_clear();
|
||||
int zmk_ble_identity_next();
|
||||
int zmk_ble_identity_prev();
|
||||
int zmk_ble_identity_select(u8_t index);
|
||||
int zmk_ble_clear_bonds();
|
||||
|
||||
int zmk_ble_unpair_all();
|
||||
bool zmk_ble_handle_key_user(struct zmk_key_event *key_event);
|
||||
|
||||
Reference in New Issue
Block a user