2022-07-22 07:36 AM
#if defined(CONFIG_DEVICE_BLUENRG_LP) || defined(CONFIG_DEVICE_BLUENRG_LPS)
/* Enable Power Save In the MR_BLE if the radio peripheral is disabled */
if (!LL_APB2_IsEnabledClock(LL_APB2_PERIPH_MRBLE)) {
LL_APB2_EnableClock(LL_APB2_PERIPH_MRBLE);
}
WAKEUP->BLUE_SLEEP_REQUEST_MODE = WAKEUP_BLUE_SLEEP_REQUEST_MODE_FORCE_SLEEPING;
if (!LL_APB2_IsEnabledClock(LL_APB2_PERIPH_MRBLE)) {
LL_APB2_DisableClock(LL_APB2_PERIPH_MRBLE);
}
#endif
re: rf_driver_hal_power_manager.c 1137-1146. The conditional at line 7: should that NOT(!), not be there? Seems like it is checking to see if clock is disabled and then disabling. At a minimum, I'd like to understand...