Skip to main content
JWill.8
Associate III
July 22, 2022
Question

BlueNRG_LP SDK rf_driver_hal_power_manager.c: Is this a bug or can somebody explain it to me?

  • July 22, 2022
  • 0 replies
  • 562 views
#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...

This topic has been closed for replies.