KugleFirmware/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c
/**
  * @brief  This function handles the PWR WAKEUP PIN interrupt request.
  * @note   This API should be called under the WAKEUP_PIN_IRQHandler().
  * @retval None
  */
@brief  This function handles the PWR WAKEUP PIN interrupt request.
@note   This API should be called under the WAKEUP_PIN_IRQHandler().
@retval None
@brief This function handles the PWR WAKEUP PIN interrupt request . @note This API should be called under the WAKEUP_PIN_IRQHandler () . @retval None
void HAL_PWREx_WAKEUP_PIN_IRQHandler(void)
{
  if(READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF1) != RESET)
  {
    SET_BIT(PWR->WKUPCR, PWR_WKUPCR_WKUPC1);
    HAL_PWREx_WKUP1_Callback();
  }
  else if(READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF2) != RESET)
  {
    SET_BIT(PWR->WKUPCR, PWR_WKUPCR_WKUPC2);
    HAL_PWREx_WKUP2_Callback();
  }
  else if(READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF3) != RESET)
  {
    SET_BIT(PWR->WKUPCR, PWR_WKUPCR_WKUPC3);
    HAL_PWREx_WKUP3_Callback();
  }
  else if(READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF4) != RESET)
  {
    SET_BIT(PWR->WKUPCR, PWR_WKUPCR_WKUPC4);
    HAL_PWREx_WKUP4_Callback();
  }
  else if(READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF5) != RESET)
  {
    SET_BIT(PWR->WKUPCR, PWR_WKUPCR_WKUPC5);
    HAL_PWREx_WKUP5_Callback();
  }
  else
  {
    SET_BIT(PWR->WKUPCR, PWR_WKUPCR_WKUPC6);
    HAL_PWREx_WKUP6_Callback();
  }
}
void HAL_PWREx_WAKEUP_PIN_IRQHandler ( void ) { if ( READ_BIT ( PWR -> WKUPFR , PWR_WKUPFR_WKUPF1 ) != RESET ) { SET_BIT ( PWR -> WKUPCR , PWR_WKUPCR_WKUPC1 ) ; HAL_PWREx_WKUP1_Callback ( ) ; } else if ( READ_BIT ( PWR -> WKUPFR , PWR_WKUPFR_WKUPF2 ) != RESET ) { SET_BIT ( PWR -> WKUPCR , PWR_WKUPCR_WKUPC2 ) ; HAL_PWREx_WKUP2_Callback ( ) ; } else if ( READ_BIT ( PWR -> WKUPFR , PWR_WKUPFR_WKUPF3 ) != RESET ) { SET_BIT ( PWR -> WKUPCR , PWR_WKUPCR_WKUPC3 ) ; HAL_PWREx_WKUP3_Callback ( ) ; } else if ( READ_BIT ( PWR -> WKUPFR , PWR_WKUPFR_WKUPF4 ) != RESET ) { SET_BIT ( PWR -> WKUPCR , PWR_WKUPCR_WKUPC4 ) ; HAL_PWREx_WKUP4_Callback ( ) ; } else if ( READ_BIT ( PWR -> WKUPFR , PWR_WKUPFR_WKUPF5 ) != RESET ) { SET_BIT ( PWR -> WKUPCR , PWR_WKUPCR_WKUPC5 ) ; HAL_PWREx_WKUP5_Callback ( ) ; } else { SET_BIT ( PWR -> WKUPCR , PWR_WKUPCR_WKUPC6 ) ; HAL_PWREx_WKUP6_Callback ( ) ; } }
@brief  This function handles the PWR WAKEUP PIN interrupt request.
@brief This function handles the PWR WAKEUP PIN interrupt request .
/* Wakeup pin EXTI line interrupt detected */ /* Clear PWR WKUPF1 flag */ /* PWR WKUP1 interrupt user callback */ /* Clear PWR WKUPF2 flag */ /* PWR WKUP2 interrupt user callback */ /* Clear PWR WKUPF3 flag */ /* PWR WKUP3 interrupt user callback */ /* Clear PWR WKUPF4 flag */ /* PWR WKUP4 interrupt user callback */ /* Clear PWR WKUPF5 flag */ /* PWR WKUP5 interrupt user callback */ /* Clear PWR WKUPF6 flag */ /* PWR WKUP6 interrupt user callback */