pwr.h

Power control (PWR) support.

Types

struct pwr_reg_map

Power interface register map.

Public Members
__io uint32 CR

Control register.

__io uint32 CSR

Control and status register.

Devices

None.

Functions

void pwr_init(void)

Enables the power interface clock, and resets the power device.

Register Map Base Pointers

PWR_BASE

Power peripheral register map base pointer.

Register Bit Definitions

Control register

PWR_CR_DBP

Disable backup domain write protection.

PWR_CR_PVDE

Power voltage detector enable.

PWR_CR_CSBF

Clear standby flag.

PWR_CR_CWUF

Clear wakeup flag.

PWR_CR_PDDS

Power down deepsleep.

PWR_CR_LPDS

Low-power deepsleep.

Control and status register

PWR_CSR_EWUP

Enable wakeup pin.

PWR_CSR_PVDO

PVD output.

PWR_CSR_SBF

Standby flag.

PWR_CSR_WUF

Wakeup flag.