Bluetooth: controller: Convert bluetooth controller to using k_timeout_t
Convert bluetooth controller to using the new k_timeout_t API so that CONFIG_LEGACY_TIMEOUT_API can be turned off. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
666c0f8f60
commit
05e5db74cf
|
@ -355,7 +355,7 @@ static void recv_thread(void *p1, void *p2, void *p3)
|
|||
events[0].signal->signaled = 0U;
|
||||
} else if (events[1].state ==
|
||||
K_POLL_STATE_FIFO_DATA_AVAILABLE) {
|
||||
node_rx = k_fifo_get(events[1].fifo, 0);
|
||||
node_rx = k_fifo_get(events[1].fifo, K_NO_WAIT);
|
||||
}
|
||||
|
||||
events[0].state = K_POLL_STATE_NOT_READY;
|
||||
|
|
|
@ -688,13 +688,13 @@ void ll_rl_rpa_update(bool timeout)
|
|||
static void rpa_timeout(struct k_work *work)
|
||||
{
|
||||
ll_rl_rpa_update(true);
|
||||
k_delayed_work_submit(&rpa_work, rpa_timeout_ms);
|
||||
k_delayed_work_submit(&rpa_work, K_MSEC(rpa_timeout_ms));
|
||||
}
|
||||
|
||||
static void rpa_refresh_start(void)
|
||||
{
|
||||
BT_DBG("");
|
||||
k_delayed_work_submit(&rpa_work, rpa_timeout_ms);
|
||||
k_delayed_work_submit(&rpa_work, K_MSEC(rpa_timeout_ms));
|
||||
}
|
||||
|
||||
static void rpa_refresh_stop(void)
|
||||
|
|
|
@ -1022,13 +1022,13 @@ static int rl_access_check(bool check_ar)
|
|||
static void rpa_timeout(struct k_work *work)
|
||||
{
|
||||
ull_filter_rpa_update(true);
|
||||
k_delayed_work_submit(&rpa_work, rpa_timeout_ms);
|
||||
k_delayed_work_submit(&rpa_work, K_MSEC(rpa_timeout_ms));
|
||||
}
|
||||
|
||||
static void rpa_refresh_start(void)
|
||||
{
|
||||
BT_DBG("");
|
||||
k_delayed_work_submit(&rpa_work, rpa_timeout_ms);
|
||||
k_delayed_work_submit(&rpa_work, K_MSEC(rpa_timeout_ms));
|
||||
}
|
||||
|
||||
static void rpa_refresh_stop(void)
|
||||
|
|
Loading…
Reference in New Issue