Bluetooth: Controller: Fix ext conn create when using single timer
Fix Extended Connection Creation when using single timer feature in the Controller. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
bcd28e0a86
commit
a7fff7445c
3 changed files with 15 additions and 0 deletions
|
@ -646,6 +646,15 @@ uint32_t radio_is_done(void)
|
|||
}
|
||||
#endif /* !CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER */
|
||||
|
||||
uint32_t radio_is_tx_done(void)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER)) {
|
||||
return radio_is_done();
|
||||
} else {
|
||||
return 1U;
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t radio_has_disabled(void)
|
||||
{
|
||||
return (NRF_RADIO->EVENTS_DISABLED != 0);
|
||||
|
|
|
@ -86,6 +86,7 @@ void radio_status_reset(void);
|
|||
uint32_t radio_is_ready(void);
|
||||
uint32_t radio_is_address(void);
|
||||
uint32_t radio_is_done(void);
|
||||
uint32_t radio_is_tx_done(void);
|
||||
uint32_t radio_has_disabled(void);
|
||||
uint32_t radio_is_idle(void);
|
||||
|
||||
|
|
|
@ -477,6 +477,11 @@ static void isr_tx_rx(void *param)
|
|||
node_rx_prof = lll_prof_reserve();
|
||||
}
|
||||
|
||||
/* Call to ensure packet/event timer accumulates the elapsed time
|
||||
* under single timer use.
|
||||
*/
|
||||
(void)radio_is_tx_done();
|
||||
|
||||
/* Clear radio tx status and events */
|
||||
lll_isr_tx_status_reset();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue