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:
parent
e1479a406f
commit
405ae6bb65
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue