|
STM32G474xx HAL User Manual
|
宏定义 | |
| #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.h 第 643 行。
| #define LL_RTC_WAKEUPCLOCK_CKSPRE_WUT (RTC_CR_WUCKSEL_2 | RTC_CR_WUCKSEL_1) |
选择ck_spre(通常为1Hz)时钟,并将2exp16添加到WUT计数器值
定义位于文件 stm32g4xx_ll_rtc.h 第 644 行。
| #define LL_RTC_WAKEUPCLOCK_DIV_16 0x00000000U |
选择RTC/16时钟
定义位于文件 stm32g4xx_ll_rtc.h 第 639 行。
| #define LL_RTC_WAKEUPCLOCK_DIV_2 (RTC_CR_WUCKSEL_1 | RTC_CR_WUCKSEL_0) |
选择RTC/2时钟
定义位于文件 stm32g4xx_ll_rtc.h 第 642 行。
| #define LL_RTC_WAKEUPCLOCK_DIV_4 RTC_CR_WUCKSEL_1 |
选择RTC/4时钟
定义位于文件 stm32g4xx_ll_rtc.h 第 641 行。
| #define LL_RTC_WAKEUPCLOCK_DIV_8 RTC_CR_WUCKSEL_0 |
选择RTC/8时钟
定义位于文件 stm32g4xx_ll_rtc.h 第 640 行。
1.7.6.1