stm32l4: rcc: fix bit error in BDCR

And add the new bit from later ref manuals
This commit is contained in:
Karl Palsson 2020-04-09 22:04:49 +00:00
parent 89e90e0e5d
commit 57373b3413
1 changed files with 2 additions and 1 deletions

View File

@ -681,7 +681,8 @@ Twelve frequency ranges are available: 100 kHz, 200 kHz, 400 kHz, 800 kHz,
#define RCC_BDCR_RTCSEL_SHIFT 8 #define RCC_BDCR_RTCSEL_SHIFT 8
#define RCC_BDCR_RTCSEL_MASK 0x3 #define RCC_BDCR_RTCSEL_MASK 0x3
#define RCC_BDCR_LSECSSD (1 << 7) #define RCC_BDCR_LSESYSDIS (1 << 7)
#define RCC_BDCR_LSECSSD (1 << 6)
#define RCC_BDCR_LSECSSON (1 << 5) #define RCC_BDCR_LSECSSON (1 << 5)
#define RCC_BDCR_LSEDRV_LOW 0 #define RCC_BDCR_LSEDRV_LOW 0