Add RCC_CSR bit definitions and a osc_t enum.
This commit is contained in:
parent
5cdbb466fa
commit
07b6ca3a90
@ -223,4 +223,20 @@
|
|||||||
#define RTCEN (1 << 15)
|
#define RTCEN (1 << 15)
|
||||||
#define BDRST (1 << 16)
|
#define BDRST (1 << 16)
|
||||||
|
|
||||||
|
/* --- RCC_CSR values -------------------------------------------------- */
|
||||||
|
|
||||||
|
#define LSION (1 << 0)
|
||||||
|
#define LSIRDY (1 << 1)
|
||||||
|
#define RMVF (1 << 24)
|
||||||
|
#define PINRSTF (1 << 26)
|
||||||
|
#define PORRSTF (1 << 27)
|
||||||
|
#define SFTRSTF (1 << 28)
|
||||||
|
#define IWDGRSTF (1 << 29)
|
||||||
|
#define WWDGRSTF (1 << 30)
|
||||||
|
#define LPWRRSTF (1 << 31)
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
PLL, HSE, HSI, LSE, LSI
|
||||||
|
} osc_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user