AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/stm32f10x/drivers/src/stm32f10x_misc.c
void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_NVIC_LP(LowPowerMode));
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  if (NewState != DISABLE)
  {
    SCB->SCR |= LowPowerMode;
  }
  else
  {
    SCB->SCR &= (uint32_t)(~(uint32_t)LowPowerMode);
  }
}
/**
  * @brief  Selects the condition for the system to enter low power mode.
  * @param  LowPowerMode: Specifies the new mode for the system to enter low power mode.
  *   This parameter can be one of the following values:
  *     @arg NVIC_LP_SEVONPEND
  *     @arg NVIC_LP_SLEEPDEEP
  *     @arg NVIC_LP_SLEEPONEXIT
  * @param  NewState: new state of LP condition. This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
@brief  Selects the condition for the system to enter low power mode.
@param  LowPowerMode: Specifies the new mode for the system to enter low power mode.
This parameter can be one of the following values:
@arg NVIC_LP_SEVONPEND
@arg NVIC_LP_SLEEPDEEP
@arg NVIC_LP_SLEEPONEXIT
@param  NewState: new state of LP condition. This parameter can be: ENABLE or DISABLE.
@retval None
@brief Selects the condition for the system to enter low power mode . @param LowPowerMode : Specifies the new mode for the system to enter low power mode . This parameter can be one of the following values : @arg NVIC_LP_SEVONPEND @arg NVIC_LP_SLEEPDEEP @arg NVIC_LP_SLEEPONEXIT @param NewState : new state of LP condition . This parameter can be : ENABLE or DISABLE . @retval None
void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState)
{
  assert_param(IS_NVIC_LP(LowPowerMode));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    SCB->SCR |= LowPowerMode;
  }
  else
  {
    SCB->SCR &= (uint32_t)(~(uint32_t)LowPowerMode);
  }
}
void NVIC_SystemLPConfig ( uint8_t LowPowerMode , FunctionalState NewState ) { assert_param ( IS_NVIC_LP ( LowPowerMode ) ) ; assert_param ( IS_FUNCTIONAL_STATE ( NewState ) ) ; if ( NewState != DISABLE ) { SCB -> SCR |= LowPowerMode ; } else { SCB -> SCR &= ( uint32_t ) ( ~ ( uint32_t ) LowPowerMode ) ; } }
@brief  Selects the condition for the system to enter low power mode.
@brief Selects the condition for the system to enter low power mode .
/* Check the parameters */