Bluetooth: drivers: Convert bluetooth drivers to use k_timeout struct
Convert bluetooth drivers to use k_timeout struct
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
diff --git a/drivers/bluetooth/hci/h4.c b/drivers/bluetooth/hci/h4.c
index fbc3d8a..754c88d 100644
--- a/drivers/bluetooth/hci/h4.c
+++ b/drivers/bluetooth/hci/h4.c
@@ -157,7 +157,7 @@
rx.discardable = false;
}
-static struct net_buf *get_rx(int timeout)
+static struct net_buf *get_rx(k_timeout_t timeout)
{
BT_DBG("type 0x%02x, evt 0x%02x", rx.type, rx.evt.evt);
diff --git a/drivers/bluetooth/hci/ipm_stm32wb.c b/drivers/bluetooth/hci/ipm_stm32wb.c
index f092f95..5e1731f 100644
--- a/drivers/bluetooth/hci/ipm_stm32wb.c
+++ b/drivers/bluetooth/hci/ipm_stm32wb.c
@@ -228,7 +228,7 @@
void shci_cmd_resp_wait(uint32_t timeout)
{
- k_sem_take(&ble_sys_wait_cmd_rsp, timeout);
+ k_sem_take(&ble_sys_wait_cmd_rsp, K_MSEC(timeout));
}
void ipcc_reset(void)