Skip to content
Permalink
Browse files

bluetooth: controller: Move Nordic specific code

Move the call to radio_is_idle into Nordic LLL.

Signed-off-by: Thomas Ebert Hansen <thoh@oticon.com>
  • Loading branch information...
thoh-ot authored and nashif committed Apr 1, 2019
1 parent 773bd98 commit a202c14ff5d52e08e0932fab8f2843d85982fff4
@@ -271,6 +271,7 @@ int lll_prepare(lll_is_abort_cb_t is_abort_cb, lll_abort_cb_t abort_cb,
struct lll_prepare_param *prepare_param);
void lll_resume(void *param);
void lll_disable(void *param);
u32_t lll_radio_is_idle(void);

int ull_prepare_enqueue(lll_is_abort_cb_t is_abort_cb,
lll_abort_cb_t abort_cb,
@@ -342,6 +342,11 @@ u32_t lll_preempt_calc(struct evt_hdr *evt, u8_t ticker_id,
return 0;
}

u32_t lll_radio_is_idle(void)
{
return radio_is_idle();
}

static int init_reset(void)
{
return 0;
@@ -879,7 +879,7 @@ void ll_radio_state_abort(void)

u32_t ll_radio_state_is_idle(void)
{
return radio_is_idle();
return lll_radio_is_idle();
}

void ull_ticker_status_give(u32_t status, void *param)

0 comments on commit a202c14

Please sign in to comment.
You can’t perform that action at this time.