Skip to content

Commit 545e933

Browse files
asmellbyaescolar
authored andcommitted
drivers: bluetooth: hci: silabs: Configure radio for sleep
If PM is enabled, the radio must be configured to synchronize its protocol timer with the low frequency timer. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
1 parent 8fc5514 commit 545e933

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/bluetooth/hci/hci_silabs_efr32.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ static atomic_t sli_btctrl_events;
4343
void BTLE_LL_EventRaise(uint32_t events);
4444
void BTLE_LL_Process(uint32_t events);
4545
bool sli_pending_btctrl_events(void);
46+
RAIL_Handle_t BTLE_LL_GetRadioHandle(void);
4647

4748
void rail_isr_installer(void)
4849
{
@@ -212,6 +213,7 @@ static int slz_bt_open(const struct device *dev, bt_hci_recv_t recv)
212213

213214
#ifdef CONFIG_PM
214215
{
216+
RAIL_ConfigSleep(BTLE_LL_GetRadioHandle(), RAIL_SLEEP_CONFIG_TIMERSYNC_ENABLED);
215217
RAIL_Status_t status = RAIL_InitPowerManager();
216218

217219
if (status != RAIL_STATUS_NO_ERROR) {

0 commit comments

Comments
 (0)