Bluetooth: controller: split: Use uint8_t for advertising handles
Refactor to use uint8_t for advertising handles. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
d6cc180168
commit
e0bd57901f
2 changed files with 5 additions and 4 deletions
|
@ -11,4 +11,4 @@ void lll_adv_aux_offset_fill(uint32_t ticks_offset, uint32_t start_us,
|
|||
struct pdu_adv *pdu);
|
||||
|
||||
|
||||
extern uint16_t ull_adv_aux_lll_handle_get(struct lll_adv_aux *lll);
|
||||
extern uint8_t ull_adv_aux_lll_handle_get(struct lll_adv_aux *lll);
|
||||
|
|
|
@ -41,7 +41,7 @@ static int init_reset(void);
|
|||
#if (CONFIG_BT_CTLR_ADV_AUX_SET > 0)
|
||||
static inline struct ll_adv_aux_set *aux_acquire(void);
|
||||
static inline void aux_release(struct ll_adv_aux_set *aux);
|
||||
static inline uint16_t aux_handle_get(struct ll_adv_aux_set *aux);
|
||||
static inline uint8_t aux_handle_get(struct ll_adv_aux_set *aux);
|
||||
static void mfy_aux_offset_get(void *param);
|
||||
static void ticker_cb(uint32_t ticks_at_expire, uint32_t remainder,
|
||||
uint16_t lazy, void *param);
|
||||
|
@ -538,7 +538,7 @@ int ull_adv_aux_reset(void)
|
|||
}
|
||||
|
||||
#if (CONFIG_BT_CTLR_ADV_AUX_SET > 0)
|
||||
uint16_t ull_adv_aux_lll_handle_get(struct lll_adv_aux *lll)
|
||||
uint8_t ull_adv_aux_lll_handle_get(struct lll_adv_aux *lll)
|
||||
{
|
||||
return aux_handle_get((void *)lll->hdr.parent);
|
||||
}
|
||||
|
@ -652,7 +652,7 @@ static inline void aux_release(struct ll_adv_aux_set *aux)
|
|||
mem_release(aux, &adv_aux_free);
|
||||
}
|
||||
|
||||
static inline uint16_t aux_handle_get(struct ll_adv_aux_set *aux)
|
||||
static inline uint8_t aux_handle_get(struct ll_adv_aux_set *aux)
|
||||
{
|
||||
return mem_index_get(aux, ll_adv_aux_pool,
|
||||
sizeof(struct ll_adv_aux_set));
|
||||
|
@ -755,6 +755,7 @@ static void ticker_cb(uint32_t ticks_at_expire, uint32_t remainder,
|
|||
}
|
||||
}
|
||||
#endif /* CONFIG_BT_CTLR_ADV_PERIODIC */
|
||||
|
||||
DEBUG_RADIO_PREPARE_A(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue