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 bit.

PWR_CR_PVDE

Power voltage detector enable bit.

PWR_CR_CSBF

Clear standby flag bit.

PWR_CR_CWUF

Clear wakeup flag bit.

PWR_CR_PDDS

Power down deepsleep bit.

PWR_CR_LPDS

Low-power deepsleep bit.

Control and status register

PWR_CSR_EWUP

Enable wakeup pin bit.

PWR_CSR_PVDO

PVD output bit.

PWR_CSR_SBF

Standby flag bit.

PWR_CSR_WUF

Wakeup flag bit.