26#ifndef LIBOPENCM3_PWR_COMMON_V2_H
27#define LIBOPENCM3_PWR_COMMON_V2_H
36#define PWR_CR_LPRUN (1 << 14)
39#define PWR_CR_VOS_LSB 11
44#define PWR_CR_VOS_RANGE1 (0x1 << PWR_CR_VOS_LSB)
45#define PWR_CR_VOS_RANGE2 (0x2 << PWR_CR_VOS_LSB)
46#define PWR_CR_VOS_RANGE3 (0x3 << PWR_CR_VOS_LSB)
48#define PWR_CR_VOS_MASK (0x3 << PWR_CR_VOS_LSB)
51#define PWR_CR_FWU (1 << 10)
54#define PWR_CR_ULP (1 << 9)
57#define PWR_CR_LPSDSR (1 << 0)
62#define PWR_CSR_EWUP2 (1 << 9)
65#define PWR_CSR_EWUP1 PWR_CSR_EWUP
68#define PWR_CSR_REGLPF (1 << 5)
71#define PWR_CSR_VOSF (1 << 4)
74#define PWR_CSR_VREFINTRDYF (1 << 3)
void pwr_set_vos_scale(enum pwr_vos_scale scale)
pwr_vos_scale
Voltage scales for internal regulator.
@ PWR_SCALE1
high performance, highest voltage
@ PWR_SCALE2
medium performance, flash operational but slow
@ PWR_SCALE3
low performance, no flash erase/program