diff --git a/include/libopencm3/stm32/f3/pwr.h b/include/libopencm3/stm32/f3/pwr.h index 08bfbe2f..be392ab5 100644 --- a/include/libopencm3/stm32/f3/pwr.h +++ b/include/libopencm3/stm32/f3/pwr.h @@ -43,27 +43,13 @@ #include -/* --- PWR_CR values ------------------------------------------------------- */ - -/* Bits [31:10]: Reserved */ -#define PWR_CR_DBP (1 << 8) -/* Bits [7:5]: Reserved PLS: PVD level selection. (Power Voltage Detector) */ -#define PWR_CR_PVDE (1 << 4) -#define PWR_CR_CSBF (1 << 3) -#define PWR_CR_CWUF (1 << 2) -#define PWR_CR_PDDS (1 << 1) -#define PWR_CR_LPDS (1 << 0) - - /* --- PWR_CSR values ------------------------------------------------------ */ -/* Bits [31:10]: Reserved */ +/** Enable WKUP pin 3 */ +#define PWR_CSR_EWUP3 (1 << 10) +/** Enable WKUP pin 2 */ #define PWR_CSR_EWUP2 (1 << 9) -#define PWR_CSR_EWUP1 (1 << 8) -/* Bits [7:3]: Reserved */ -#define PWR_CSR_PVDO (1 << 2) -#define PWR_CSR_SBF (1 << 1) -#define PWR_CSR_WUF (1 << 0) - +/** Enable WKUP pin 1 */ +#define PWR_CSR_EWUP1 PWR_CSR_EWUP #endif