From 6d684c91c2bfca902174ddd5135da8e669edf06a Mon Sep 17 00:00:00 2001 From: Nazar Palamar Date: Mon, 15 Apr 2024 19:13:17 +0300 Subject: [PATCH] drivers: bluetooth/cyw43xxx: check that hw_flow_control is set Add BUILD_ASSERT to check that hw_flow_control is set. Signed-off-by: Nazar Palamar --- drivers/bluetooth/hci/cyw43xxx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bluetooth/hci/cyw43xxx.c b/drivers/bluetooth/hci/cyw43xxx.c index be3299e9218..f1ee9ad81b1 100644 --- a/drivers/bluetooth/hci/cyw43xxx.c +++ b/drivers/bluetooth/hci/cyw43xxx.c @@ -26,6 +26,9 @@ LOG_MODULE_REGISTER(cyw43xxx_driver); #include +BUILD_ASSERT(DT_PROP(DT_CHOSEN(zephyr_bt_uart), hw_flow_control) == 1, + "hw_flow_control must be enabled for HCI H4 UART"); + #define DT_DRV_COMPAT infineon_cyw43xxx_bt_hci /* BT settling time after power on */