diff --git a/drivers/bluetooth/hci/Kconfig b/drivers/bluetooth/hci/Kconfig index 2e96cb583729..76fd043d249c 100644 --- a/drivers/bluetooth/hci/Kconfig +++ b/drivers/bluetooth/hci/Kconfig @@ -58,6 +58,14 @@ config BT_HCI_IPC_SEND_RETRY_DELAY_US When a single tick (CONFIG_SYS_CLOCK_TICKS_PER_SEC) is bigger then the retry delay the k_busy_wait function is used. Set with care. +config BT_HCI_IPC_ENDPOINT_BOUND_TIMEOUT_MS + int "HCI IPC binding timeout value in milliseconds" + depends on BT_HCI_IPC + default 2000 + help + Timeout value that HCI will wait for an IPC endpoint to be bound, + in milliseconds. + config BT_SPI bool select SPI diff --git a/drivers/bluetooth/hci/ipc.c b/drivers/bluetooth/hci/ipc.c index 28b2a322f60d..1dcfdc915d9b 100644 --- a/drivers/bluetooth/hci/ipc.c +++ b/drivers/bluetooth/hci/ipc.c @@ -20,7 +20,7 @@ LOG_MODULE_REGISTER(bt_hci_driver); #define DT_DRV_COMPAT zephyr_bt_hci_ipc -#define IPC_BOUND_TIMEOUT_IN_MS K_MSEC(1000) +#define IPC_BOUND_TIMEOUT_IN_MS K_MSEC(CONFIG_BT_HCI_IPC_ENDPOINT_BOUND_TIMEOUT_MS) /* The retry of ipc_service_send function requires a small (tens of us) delay. * In order to ensure proper delay k_usleep is used when the system clock is