stm32f3: pwr: drop duplicate definitions
These definitions were in the already included pwr_common_v1.h file. And add extra WKUP bit definitions.
This commit is contained in:
@@ -43,27 +43,13 @@
|
||||
|
||||
#include <libopencm3/stm32/common/pwr_common_v1.h>
|
||||
|
||||
/* --- 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
|
||||
|
||||
Reference in New Issue
Block a user