@@ -47,7 +47,7 @@ struct peripheral_slot {
47
47
uint8_t changed_positions [POSITION_STATE_DATA_LEN ];
48
48
};
49
49
50
- static struct peripheral_slot peripherals [ZMK_BLE_SPLIT_PERIPHERAL_COUNT ];
50
+ static struct peripheral_slot peripherals [ZMK_SPLIT_BLE_PERIPHERAL_COUNT ];
51
51
52
52
static const struct bt_uuid_128 split_service_uuid = BT_UUID_INIT_128 (ZMK_SPLIT_BT_SERVICE_UUID );
53
53
@@ -65,7 +65,7 @@ void peripheral_event_work_callback(struct k_work *work) {
65
65
K_WORK_DEFINE (peripheral_event_work , peripheral_event_work_callback );
66
66
67
67
int peripheral_slot_index_for_conn (struct bt_conn * conn ) {
68
- for (int i = 0 ; i < ZMK_BLE_SPLIT_PERIPHERAL_COUNT ; i ++ ) {
68
+ for (int i = 0 ; i < ZMK_SPLIT_BLE_PERIPHERAL_COUNT ; i ++ ) {
69
69
if (peripherals [i ].conn == conn ) {
70
70
return i ;
71
71
}
@@ -84,7 +84,7 @@ struct peripheral_slot *peripheral_slot_for_conn(struct bt_conn *conn) {
84
84
}
85
85
86
86
int release_peripheral_slot (int index ) {
87
- if (index < 0 || index >= ZMK_BLE_SPLIT_PERIPHERAL_COUNT ) {
87
+ if (index < 0 || index >= ZMK_SPLIT_BLE_PERIPHERAL_COUNT ) {
88
88
return - EINVAL ;
89
89
}
90
90
@@ -131,7 +131,7 @@ int release_peripheral_slot(int index) {
131
131
}
132
132
133
133
int reserve_peripheral_slot () {
134
- for (int i = 0 ; i < ZMK_BLE_SPLIT_PERIPHERAL_COUNT ; i ++ ) {
134
+ for (int i = 0 ; i < ZMK_SPLIT_BLE_PERIPHERAL_COUNT ; i ++ ) {
135
135
if (peripherals [i ].state == PERIPHERAL_SLOT_STATE_OPEN ) {
136
136
// Be sure the slot is fully reinitialized.
137
137
release_peripheral_slot (i );
@@ -504,7 +504,7 @@ static struct bt_conn_cb conn_callbacks = {
504
504
};
505
505
506
506
K_THREAD_STACK_DEFINE (split_central_split_run_q_stack ,
507
- CONFIG_ZMK_BLE_SPLIT_CENTRAL_SPLIT_RUN_STACK_SIZE );
507
+ CONFIG_ZMK_SPLIT_BLE_CENTRAL_SPLIT_RUN_STACK_SIZE );
508
508
509
509
struct k_work_q split_central_split_run_q ;
510
510
@@ -515,7 +515,7 @@ struct zmk_split_run_behavior_payload_wrapper {
515
515
516
516
K_MSGQ_DEFINE (zmk_split_central_split_run_msgq ,
517
517
sizeof (struct zmk_split_run_behavior_payload_wrapper ),
518
- CONFIG_ZMK_BLE_SPLIT_CENTRAL_SPLIT_RUN_QUEUE_SIZE , 4 );
518
+ CONFIG_ZMK_SPLIT_BLE_CENTRAL_SPLIT_RUN_QUEUE_SIZE , 4 );
519
519
520
520
void split_central_split_run_callback (struct k_work * work ) {
521
521
struct zmk_split_run_behavior_payload_wrapper payload_wrapper ;
0 commit comments