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>
This commit is contained in:
Joakim Andersson 2020-04-06 13:56:14 +02:00 committed by Johan Hedberg
commit 405ae6bb65
2 changed files with 2 additions and 2 deletions

View file

@ -157,7 +157,7 @@ static void reset_rx(void)
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);

View file

@ -228,7 +228,7 @@ void shci_cmd_resp_release(uint32_t flag)
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)