pwr.h — Maple v0.0.11 Documentation

### Navigation

- next
- previous |
- LeafLabs |
- Index »
- `libmaple` »
- APIs »

# `pwr.h`

[Stub] support.

## Library Documentation

> Power control (PWR) defines.

> Defines

> > PWR_BASE

> >   Power peripheral register map base pointer.

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

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

> Functions

> > void pwr_init(void )

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

> class pwr_reg_map

> > Power interface register map.

> > Public Members

> > > __io uint32 CR

> > >   Control register.

> > > __io uint32 CSR

> > >   Control and status register.

### Navigation

- next
- previous |
- LeafLabs |
- Index »
- `libmaple` »
- APIs »