From e708f863ff0efb99975c34c0c09b6ff827f4c12c Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 11 Jan 2023 15:17:43 +0100 Subject: [PATCH] port: allow one MAX_NR_HID_HOST_CONNECTIONS and MAX_NR_HIDS_CLIENTS for HID(S) host demos --- port/apollo2-em9304/btstack_config.h | 1 + port/max32630-fthr/src/btstack_config.h | 2 ++ port/msp432p401lp-cc256x/btstack_config.h | 2 ++ .../template/btstack_example/src/btstack_config.h | 1 + port/samv71-xplained-atwilc3000/btstack_config.h | 1 + port/stm32-f4discovery-cc256x/port/btstack_config.h | 2 ++ port/stm32-f4discovery-usb/port/btstack_config.h | 2 ++ port/stm32-l073rz-nucleo-em9304/port/btstack_config.h | 1 + port/stm32-wb55xx-nucleo-freertos/port/btstack_config.h | 1 + 9 files changed, 13 insertions(+) diff --git a/port/apollo2-em9304/btstack_config.h b/port/apollo2-em9304/btstack_config.h index 8cf08695f..fbcb26ca6 100644 --- a/port/apollo2-em9304/btstack_config.h +++ b/port/apollo2-em9304/btstack_config.h @@ -23,6 +23,7 @@ #define HCI_ACL_PAYLOAD_SIZE 200 #define MAX_NR_GATT_CLIENTS 1 #define MAX_NR_HCI_CONNECTIONS 1 +#define MAX_NR_HIDS_CLIENTS 1 #define MAX_NR_SM_LOOKUP_ENTRIES 3 #define MAX_NR_WHITELIST_ENTRIES 1 diff --git a/port/max32630-fthr/src/btstack_config.h b/port/max32630-fthr/src/btstack_config.h index bf73b5b2f..60a7fe393 100644 --- a/port/max32630-fthr/src/btstack_config.h +++ b/port/max32630-fthr/src/btstack_config.h @@ -33,6 +33,8 @@ #define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES 2 #define MAX_NR_GATT_CLIENTS 1 #define MAX_NR_HCI_CONNECTIONS 1 +#define MAX_NR_HID_HOST_CONNECTIONS 1 +#define MAX_NR_HIDS_CLIENTS 1 #define MAX_NR_HFP_CONNECTIONS 1 #define MAX_NR_L2CAP_CHANNELS 3 #define MAX_NR_L2CAP_SERVICES 3 diff --git a/port/msp432p401lp-cc256x/btstack_config.h b/port/msp432p401lp-cc256x/btstack_config.h index 7290adc5b..9f371d802 100644 --- a/port/msp432p401lp-cc256x/btstack_config.h +++ b/port/msp432p401lp-cc256x/btstack_config.h @@ -36,6 +36,8 @@ #define MAX_NR_BNEP_SERVICES 1 #define MAX_NR_BNEP_CHANNELS 1 #define MAX_NR_HFP_CONNECTIONS 1 +#define MAX_NR_HID_HOST_CONNECTIONS 1 +#define MAX_NR_HIDS_CLIENTS 1 #define MAX_NR_WHITELIST_ENTRIES 1 #define MAX_NR_SM_LOOKUP_ENTRIES 3 #define MAX_NR_SERVICE_RECORD_ITEMS 1 diff --git a/port/renesas-tb-s1ja-cc256x/template/btstack_example/src/btstack_config.h b/port/renesas-tb-s1ja-cc256x/template/btstack_example/src/btstack_config.h index 5ac3ea501..81fb2c8f1 100644 --- a/port/renesas-tb-s1ja-cc256x/template/btstack_example/src/btstack_config.h +++ b/port/renesas-tb-s1ja-cc256x/template/btstack_example/src/btstack_config.h @@ -35,6 +35,7 @@ #define MAX_NR_GATT_CLIENTS 1 #define MAX_NR_HCI_CONNECTIONS 2 #define MAX_NR_HFP_CONNECTIONS 1 +#define MAX_NR_HIDS_CLIENTS 1 #define MAX_NR_L2CAP_CHANNELS 4 #define MAX_NR_L2CAP_SERVICES 3 #define MAX_NR_RFCOMM_CHANNELS 1 diff --git a/port/samv71-xplained-atwilc3000/btstack_config.h b/port/samv71-xplained-atwilc3000/btstack_config.h index ae41c9775..bdaeeeccd 100644 --- a/port/samv71-xplained-atwilc3000/btstack_config.h +++ b/port/samv71-xplained-atwilc3000/btstack_config.h @@ -27,6 +27,7 @@ #define MAX_NR_GATT_CLIENTS 1 #define MAX_NR_GATT_SUBCLIENTS 1 #define MAX_NR_HCI_CONNECTIONS 1 +#define MAX_NR_HIDS_CLIENTS 1 #define MAX_NR_LE_DEVICE_DB_ENTRIES 1 #define MAX_NR_RFCOMM_CHANNELS 0 #define MAX_NR_RFCOMM_MULTIPLEXERS 0 diff --git a/port/stm32-f4discovery-cc256x/port/btstack_config.h b/port/stm32-f4discovery-cc256x/port/btstack_config.h index 32c5ca709..513c73f8c 100644 --- a/port/stm32-f4discovery-cc256x/port/btstack_config.h +++ b/port/stm32-f4discovery-cc256x/port/btstack_config.h @@ -37,6 +37,8 @@ #define MAX_NR_GATT_CLIENTS 1 #define MAX_NR_HCI_CONNECTIONS 2 #define MAX_NR_HFP_CONNECTIONS 1 +#define MAX_NR_HID_HOST_CONNECTIONS 1 +#define MAX_NR_HIDS_CLIENTS 1 #define MAX_NR_L2CAP_CHANNELS 4 #define MAX_NR_L2CAP_SERVICES 3 #define MAX_NR_RFCOMM_CHANNELS 1 diff --git a/port/stm32-f4discovery-usb/port/btstack_config.h b/port/stm32-f4discovery-usb/port/btstack_config.h index e472922ba..060cf9782 100644 --- a/port/stm32-f4discovery-usb/port/btstack_config.h +++ b/port/stm32-f4discovery-usb/port/btstack_config.h @@ -40,6 +40,8 @@ #define MAX_NR_GATT_CLIENTS 1 #define MAX_NR_HCI_CONNECTIONS 2 #define MAX_NR_HFP_CONNECTIONS 1 +#define MAX_NR_HID_HOST_CONNECTIONS 1 +#define MAX_NR_HIDS_CLIENTS 1 #define MAX_NR_L2CAP_CHANNELS 4 #define MAX_NR_L2CAP_SERVICES 3 #define MAX_NR_RFCOMM_CHANNELS 1 diff --git a/port/stm32-l073rz-nucleo-em9304/port/btstack_config.h b/port/stm32-l073rz-nucleo-em9304/port/btstack_config.h index 2dff97603..c107b8a38 100644 --- a/port/stm32-l073rz-nucleo-em9304/port/btstack_config.h +++ b/port/stm32-l073rz-nucleo-em9304/port/btstack_config.h @@ -25,6 +25,7 @@ #define HCI_ACL_PAYLOAD_SIZE 100 #define MAX_NR_GATT_CLIENTS 1 #define MAX_NR_HCI_CONNECTIONS 1 +#define MAX_NR_HIDS_CLIENTS 1 #define MAX_NR_L2CAP_CHANNELS 1 #define MAX_NR_L2CAP_SERVICES 1 #define MAX_NR_SM_LOOKUP_ENTRIES 3 diff --git a/port/stm32-wb55xx-nucleo-freertos/port/btstack_config.h b/port/stm32-wb55xx-nucleo-freertos/port/btstack_config.h index 233e1f1ea..b5eb4f271 100644 --- a/port/stm32-wb55xx-nucleo-freertos/port/btstack_config.h +++ b/port/stm32-wb55xx-nucleo-freertos/port/btstack_config.h @@ -28,6 +28,7 @@ #define HCI_ACL_PAYLOAD_SIZE (512 + 4) //Max official att size + l2cap header size #define MAX_NR_GATT_CLIENTS 1 #define MAX_NR_HCI_CONNECTIONS 1 +#define MAX_NR_HIDS_CLIENTS 1 #define MAX_NR_L2CAP_CHANNELS 3 #define MAX_NR_L2CAP_SERVICES 2 #define MAX_NR_LE_DEVICE_DB_ENTRIES 1