Lines Matching refs:WakeUpPinPolarity
336 void HAL_PWR_EnableWakeUpPin(uint32_t WakeUpPinPolarity) in HAL_PWR_EnableWakeUpPin() argument
340 assert_param(IS_PWR_WAKEUP_PIN(WakeUpPinPolarity)); in HAL_PWR_EnableWakeUpPin()
342 if ((WakeUpPinPolarity & PWR_WAKEUP_PIN1) == PWR_WAKEUP_PIN1) in HAL_PWR_EnableWakeUpPin()
346 if ((WakeUpPinPolarity & PWR_WAKEUP_PIN2) == PWR_WAKEUP_PIN2) in HAL_PWR_EnableWakeUpPin()
350 if ((WakeUpPinPolarity & PWR_WAKEUP_PIN3) == PWR_WAKEUP_PIN3) in HAL_PWR_EnableWakeUpPin()
354 if ((WakeUpPinPolarity & PWR_WAKEUP_PIN4) == PWR_WAKEUP_PIN4) in HAL_PWR_EnableWakeUpPin()
358 if ((WakeUpPinPolarity & PWR_WAKEUP_PIN5) == PWR_WAKEUP_PIN5) in HAL_PWR_EnableWakeUpPin()
362 if ((WakeUpPinPolarity & PWR_WAKEUP_PIN6) == PWR_WAKEUP_PIN6) in HAL_PWR_EnableWakeUpPin()
370 CLEAR_BIT(PWR->MPUWKUPENR, (WakeUpPinPolarity & PWR_WAKEUP_PIN_MASK)); /* Disable WKUP pin */ in HAL_PWR_EnableWakeUpPin()
372 …(WakeUpPinPolarity & (PWR_WKUPCR_WKUPP | PWR_WKUPCR_WKUPPUPD))); /* Modify polarity and pull confi… in HAL_PWR_EnableWakeUpPin()
373 SET_BIT(PWR->WKUPCR, (WakeUpPinPolarity & PWR_WKUPCR_WKUPC)); /* Clear wake up flag */ in HAL_PWR_EnableWakeUpPin()
374 …SET_BIT(PWR->MPUWKUPENR, (WakeUpPinPolarity & PWR_WAKEUP_PIN_MASK)); /* Enable the Wake up pin for… in HAL_PWR_EnableWakeUpPin()
377 CLEAR_BIT(PWR->MCUWKUPENR, (WakeUpPinPolarity & PWR_WAKEUP_PIN_MASK)); /* Disable WKUP pin */ in HAL_PWR_EnableWakeUpPin()
379 …(WakeUpPinPolarity & (PWR_WKUPCR_WKUPP | PWR_WKUPCR_WKUPPUPD))); /* Modify polarity and pull confi… in HAL_PWR_EnableWakeUpPin()
380 SET_BIT(PWR->WKUPCR, (WakeUpPinPolarity & PWR_WKUPCR_WKUPC)); /* Clear wake up flag */ in HAL_PWR_EnableWakeUpPin()
381 …SET_BIT(PWR->MCUWKUPENR, (WakeUpPinPolarity & PWR_WAKEUP_PIN_MASK)); /* Enable the Wake up pin for… in HAL_PWR_EnableWakeUpPin()