STM32G474xx HAL User Manual
宏定义
唤醒时钟分频
RTC导出常量

宏定义

#define LL_RTC_WAKEUPCLOCK_DIV_16   0x00000000U
#define LL_RTC_WAKEUPCLOCK_DIV_8   RTC_CR_WUCKSEL_0
#define LL_RTC_WAKEUPCLOCK_DIV_4   RTC_CR_WUCKSEL_1
#define LL_RTC_WAKEUPCLOCK_DIV_2   (RTC_CR_WUCKSEL_1 | RTC_CR_WUCKSEL_0)
#define LL_RTC_WAKEUPCLOCK_CKSPRE   RTC_CR_WUCKSEL_2
#define LL_RTC_WAKEUPCLOCK_CKSPRE_WUT   (RTC_CR_WUCKSEL_2 | RTC_CR_WUCKSEL_1)

宏定义文档

#define LL_RTC_WAKEUPCLOCK_CKSPRE   RTC_CR_WUCKSEL_2

选择ck_spre(通常为1Hz)时钟

定义位于文件 stm32g4xx_ll_rtc.h643 行。

#define LL_RTC_WAKEUPCLOCK_CKSPRE_WUT   (RTC_CR_WUCKSEL_2 | RTC_CR_WUCKSEL_1)

选择ck_spre(通常为1Hz)时钟,并将2exp16添加到WUT计数器值

定义位于文件 stm32g4xx_ll_rtc.h644 行。

#define LL_RTC_WAKEUPCLOCK_DIV_16   0x00000000U

选择RTC/16时钟

定义位于文件 stm32g4xx_ll_rtc.h639 行。

#define LL_RTC_WAKEUPCLOCK_DIV_2   (RTC_CR_WUCKSEL_1 | RTC_CR_WUCKSEL_0)

选择RTC/2时钟

定义位于文件 stm32g4xx_ll_rtc.h642 行。

#define LL_RTC_WAKEUPCLOCK_DIV_4   RTC_CR_WUCKSEL_1

选择RTC/4时钟

定义位于文件 stm32g4xx_ll_rtc.h641 行。

#define LL_RTC_WAKEUPCLOCK_DIV_8   RTC_CR_WUCKSEL_0

选择RTC/8时钟

定义位于文件 stm32g4xx_ll_rtc.h640 行。