Lines Matching full:mode

42 /** @defgroup PWR_PVD_Mode_Mask PWR PVD Mode Mask
115 internally to VREFINT. The PVD_IN (PB7) has to be configured in Analog mode
122 (+) The PVD is stopped in Standby mode.
128 (+) WakeUp pin is used to wake up the system from Standby mode. This pin is
144 …WR_REGULATOR_VOLTAGE_SCALE1 (VOS bits = 01), the regulator voltage output Scale 1 mode selected and
146 …WR_REGULATOR_VOLTAGE_SCALE2 (VOS bits = 10), the regulator voltage output Scale 2 mode selected and
148 …WR_REGULATOR_VOLTAGE_SCALE3 (VOS bits = 11), the regulator voltage output Scale 3 mode selected and
157 (+) Low power run mode: regulator in low power mode, limited clock frequency,
159 (+) Sleep mode: Cortex-M0+ core stopped, peripherals kept running.
160 (+) Low power sleep mode: Cortex-M0+ core stopped, limited clock frequency,
161 limited number of peripherals running, regulator in low power mode.
162 (+) Stop mode: All clocks are stopped, regulator running, regulator in low power mode.
163 (+) Standby mode: VCORE domain powered off
165 *** Low power run mode ***
168 To further reduce the consumption when the system is in Run mode, the regulator can be
169 configured in low power mode. In this mode, the system frequency should not exceed
171 In Low power run mode, all I/O pins keep the same state as in Run mode.
176 (++) The regulator is forced in low power mode using the HAL_PWREx_EnableLowPowerRunMode()
179 … (++) The regulator is forced in Main regulator mode using the HAL_PWREx_DisableLowPowerRunMode()
183 *** Sleep mode ***
187 …The Sleep mode is entered by using the HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY…
189 (++) PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction
190 (++) PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction
194 …roller (NVIC) can wake up the device from Sleep mode. If the WFE instruction was used to enter sle…
195 the MCU exits Sleep mode as soon as an event occurs.
197 *** Low power sleep mode ***
201 …The Low power sleep mode is entered by using the HAL_PWR_EnterSLEEPMode(PWR_LOWPOWERREGULATOR_ON, …
203 (++) PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction
204 (++) PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction
209 (++) If the WFI instruction was used to enter Low power sleep mode, any peripheral interrupt
211 … from Low power sleep mode. If the WFE instruction was used to enter Low power sleep mode,
212 the MCU exits Sleep mode as soon as an event occurs.
214 *** Stop mode ***
217 The Stop mode is based on the Cortex-M0+ deepsleep mode combined with peripheral
218 clock gating. The voltage regulator can be configured either in normal or low-power mode.
219 In Stop mode, all clocks in the VCORE domain are stopped, the PLL, the MSI, the HSI and
221 To get the lowest consumption in Stop mode, the internal Flash memory also enters low
222 power mode. When the Flash memory is in power-down mode, an additional startup delay is
223 incurred when waking up from Stop mode.
224 To minimize the consumption In Stop mode, VREFINT, the BOR, PVD, and temperature
225 sensor can be switched off before entering Stop mode. They can be switched on again by
226 software after exiting Stop mode using the ULP bit in the PWR_CR register.
227 In Stop mode, all I/O pins keep the same state as in Run mode.
230 The Stop mode is entered using the HAL_PWR_EnterSTOPMode
234 (++) PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction
235 (++) PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction
241 *** Standby mode ***
244 The Standby mode allows to achieve the lowest power consumption. It is based on the
245 Cortex-M0+ deepsleep mode, with the voltage regulator disabled. The VCORE domain is
250 To minimize the consumption In Standby mode, VREFINT, the BOR, PVD, and temperature
251 sensor can be switched off before entering the Standby mode. They can be switched
252 on again by software after exiting the Standby mode.
256 (++) The Standby mode is entered using the HAL_PWR_EnterSTANDBYMode() function.
261 *** Auto-wakeup (AWU) from low-power mode ***
264 The MCU can be woken up from low-power mode by an RTC Alarm event, an RTC
266 without depending on an external interrupt (Auto-wakeup mode).
268 (+) RTC auto-wakeup (AWU) from the Stop mode
269 (++) To wake up from the Stop mode with an RTC alarm event, it is necessary to:
275 (++) To wake up from the Stop mode with an RTC Tamper or time stamp event, it
284 (++) To wake up from the Stop mode with an RTC WakeUp event, it is necessary to:
291 (+) RTC auto-wakeup (AWU) from the Standby mode
292 (++) To wake up from the Standby mode with an RTC alarm event, it is necessary to:
296 (++) To wake up from the Standby mode with an RTC Tamper or time stamp event, it
303 (++) To wake up from the Standby mode with an RTC WakeUp event, it is necessary to:
308 (+) Comparator auto-wakeup (AWU) from the Stop mode
309 (++) To wake up from the Stop mode with an comparator 1 or comparator 2 wakeup
359 assert_param(IS_PWR_PVD_MODE(sConfigPVD->Mode)); in HAL_PWR_ConfigPVD()
364 /* Clear any previous config. Keep it clear if no event or IT mode is selected */ in HAL_PWR_ConfigPVD()
370 /* Configure interrupt mode */ in HAL_PWR_ConfigPVD()
371 if((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT) in HAL_PWR_ConfigPVD()
376 /* Configure event mode */ in HAL_PWR_ConfigPVD()
377 if((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT) in HAL_PWR_ConfigPVD()
383 if((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE) in HAL_PWR_ConfigPVD()
388 if((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE) in HAL_PWR_ConfigPVD()
450 * @brief Enters Sleep mode.
451 * @note In Sleep mode, all I/O pins keep the same state as in Run mode.
452 * @param Regulator: Specifies the regulator state in SLEEP mode.
454 * @arg PWR_MAINREGULATOR_ON: SLEEP mode with regulator ON
455 * @arg PWR_LOWPOWERREGULATOR_ON: SLEEP mode with low power regulator ON
456 * @param SLEEPEntry: Specifies if SLEEP mode is entered with WFI or WFE instruction.
460 * @arg PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction
461 * @arg PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction
474 in Stop mode or in Sleep/Low-power sleep mode */ in HAL_PWR_EnterSLEEPMode()
482 /* Select the regulator state in Sleep mode ---------------------------------*/ in HAL_PWR_EnterSLEEPMode()
497 /* Select SLEEP mode entry -------------------------------------------------*/ in HAL_PWR_EnterSLEEPMode()
516 /* Additional NOP to ensure all pending instructions are flushed before entering low power mode */ in HAL_PWR_EnterSLEEPMode()
522 * @brief Enters Stop mode.
523 * @note In Stop mode, all I/O pins keep the same state as in Run mode.
524 * @note When exiting Stop mode by issuing an interrupt or a wakeup event,
527 * @note When the voltage regulator operates in low power mode, an additional
528 * startup delay is incurred when waking up from Stop mode.
529 * By keeping the internal regulator ON during Stop mode, the consumption
535 * @param Regulator: Specifies the regulator state in Stop mode.
537 * @arg PWR_MAINREGULATOR_ON: Stop mode with regulator ON
538 * @arg PWR_LOWPOWERREGULATOR_ON: Stop mode with low power regulator ON
539 * @param STOPEntry: Specifies if Stop mode in entered with WFI or WFE instruction.
541 * @arg PWR_STOPENTRY_WFI: Enter Stop mode with WFI instruction
542 * @arg PWR_STOPENTRY_WFE: Enter Stop mode with WFE instruction
555 in Stop mode or in Sleep/Low-power sleep mode */ in HAL_PWR_EnterSTOPMode()
563 /* Select the regulator state in Stop mode ---------------------------------*/ in HAL_PWR_EnterSTOPMode()
578 /* Select Stop mode entry --------------------------------------------------*/ in HAL_PWR_EnterSTOPMode()
602 * @brief Enters Standby mode.
603 * @note In Standby mode, all I/O pins are high impedance except for:
616 /* Select Standby mode */ in HAL_PWR_EnterSTANDBYMode()
631 * @brief Indicates Sleep-On-Exit when returning from Handler mode to Thread mode.
633 * re-enters SLEEP mode when an interruption handling is over.
646 * @brief Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode.
648 * re-enters SLEEP mode when an interruption handling is over.