Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
110
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

UM1725

 

HAL PWR Generic Driver

Function Name

void HAL_PWR_DisableWakeUpPin (uint32_t WakeUpPinx)

Function Description

Disables the Wake-up PINx functionality.

Parameters

 

WakeUpPinx: Specifies the Power Wake-Up pin to disable.

 

 

This parameter can be one of the following values:

 

 

PWR_WAKEUP_PIN1PWR_WAKEUP_PIN2 only available in

 

 

case of STM32F446xx devices

Return values

 

None

42.2.11HAL_PWR_EnterSLEEPMode

Function Name

void HAL_PWR_EnterSLEEPMode (uint32_t Regulator, uint8_t

 

SLEEPEntry)

Function Description

Enters Sleep mode.

Parameters

 

Regulator: Specifies the regulator state in SLEEP mode.

 

 

This parameter can be one of the following values:

 

 

PWR_MAINREGULATOR_ON: SLEEP mode with regulator

 

 

ONPWR_LOWPOWERREGULATOR_ON: SLEEP mode with

 

 

low power regulator ON

 

SLEEPEntry: Specifies if SLEEP mode in entered with WFI

 

 

or WFE instruction. This parameter can be one of the

 

 

following values: PWR_SLEEPENTRY_WFI: enter SLEEP

 

 

mode with WFI instructionPWR_SLEEPENTRY_WFE: enter

 

 

SLEEP mode with WFE instruction

Return values

 

None

Notes

In Sleep mode, all I/O pins keep the same state as in Run

 

 

mode.

In Sleep mode, the systick is stopped to avoid exit from this mode with systick interrupt when used as time base for Timeout

This parameter is not used for the STM32F4 family and is kept as parameter just to maintain compatibility with the lower power families.

42.2.12HAL_PWR_EnterSTOPMode

Function Name

void HAL_PWR_EnterSTOPMode (uint32_t Regulator, uint8_t

 

STOPEntry)

 

Function Description

Enters Stop mode.

 

Parameters

 

Regulator: Specifies the regulator state in Stop mode. This

 

 

parameter can be one of the following values:

 

 

 

PWR_MAINREGULATOR_ON: Stop mode with regulator

 

 

ONPWR_LOWPOWERREGULATOR_ON: Stop mode with

 

 

low power regulator ON

 

 

STOPEntry: Specifies if Stop mode in entered with WFI or

 

 

WFE instruction. This parameter can be one of the following

 

 

values: PWR_STOPENTRY_WFI: Enter Stop mode with WFI

 

 

instructionPWR_STOPENTRY_WFE: Enter Stop mode with

 

 

WFE instruction

 

Return values

 

None

 

 

 

DOCID025834 Rev 2

517/900

HAL PWR Generic Driver

UM1725

Notes

In Stop mode, all I/O pins keep the same state as in Run

 

mode.

When exiting Stop mode by issuing an interrupt or a wake-up event, the HSI RC oscillator is selected as system clock.

When the voltage regulator operates in low power mode, an additional startup delay is incurred when waking up from Stop mode. By keeping the internal regulator ON during Stop mode, the consumption is higher although the startup time is reduced.

42.2.13HAL_PWR_EnterSTANDBYMode

Function Name

void HAL_PWR_EnterSTANDBYMode (void )

Function Description

Enters Standby mode.

Return values

None

Notes

In Standby mode, all I/O pins are high impedance except for:

 

Reset pad (still available)RTC_AF1 pin (PC13) if configured

 

for tamper, time-stamp, RTC Alarm out, or RTC clock

 

calibration out.RTC_AF2 pin (PI8) if configured for tamper or

 

time-stamp.WKUP pin 1 (PA0) if enabled.

42.2.14HAL_PWR_PVD_IRQHandler

Function Name

void HAL_PWR_PVD_IRQHandler (void )

Function Description

This function handles the PWR PVD interrupt request.

Return values

 

None

Notes

 

This API should be called under the PVD_IRQHandler().

42.2.15HAL_PWR_PVDCallback

Function Name

void HAL_PWR_PVDCallback (void )

Function Description

PWR PVD interrupt callback.

Return values

None

42.2.16HAL_PWR_EnableSleepOnExit

Function Name

void HAL_PWR_EnableSleepOnExit (void )

Function Description

Indicates Sleep-On-Exit when returning from Handler mode to

 

Thread mode.

Return values

 

None

Notes

 

Set SLEEPONEXIT bit of SCR register. When this bit is set,

the processor re-enters SLEEP mode when an interruption handling is over. Setting this bit is useful when the processor is expected to run only on interruptions handling.

42.2.17HAL_PWR_DisableSleepOnExit

Function Name

void HAL_PWR_DisableSleepOnExit (void )

518/900

DOCID025834 Rev 2

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]