| #define RCC_RTCCLKSource_LSE ((uint32_t)0x00000100) |
| #define RCC_RTCCLKSource_LSI ((uint32_t)0x00000200) |
| #define RCC_RTCCLKSource_HSE_Div2 ((uint32_t)0x00020300) |
| #define RCC_RTCCLKSource_HSE_Div3 ((uint32_t)0x00030300) |
| #define RCC_RTCCLKSource_HSE_Div4 ((uint32_t)0x00040300) |
| #define RCC_RTCCLKSource_HSE_Div5 ((uint32_t)0x00050300) |
| #define RCC_RTCCLKSource_HSE_Div6 ((uint32_t)0x00060300) |
| #define RCC_RTCCLKSource_HSE_Div7 ((uint32_t)0x00070300) |
| #define RCC_RTCCLKSource_HSE_Div8 ((uint32_t)0x00080300) |
| #define RCC_RTCCLKSource_HSE_Div9 ((uint32_t)0x00090300) |
| #define RCC_RTCCLKSource_HSE_Div10 ((uint32_t)0x000A0300) |
| #define RCC_RTCCLKSource_HSE_Div11 ((uint32_t)0x000B0300) |
| #define RCC_RTCCLKSource_HSE_Div12 ((uint32_t)0x000C0300) |
| #define RCC_RTCCLKSource_HSE_Div13 ((uint32_t)0x000D0300) |
| #define RCC_RTCCLKSource_HSE_Div14 ((uint32_t)0x000E0300) |
| #define RCC_RTCCLKSource_HSE_Div15 ((uint32_t)0x000F0300) |
| #define RCC_RTCCLKSource_HSE_Div16 ((uint32_t)0x00100300) |
| #define RCC_RTCCLKSource_HSE_Div17 ((uint32_t)0x00110300) |
| #define RCC_RTCCLKSource_HSE_Div18 ((uint32_t)0x00120300) |
| #define RCC_RTCCLKSource_HSE_Div19 ((uint32_t)0x00130300) |
| #define RCC_RTCCLKSource_HSE_Div20 ((uint32_t)0x00140300) |
| #define RCC_RTCCLKSource_HSE_Div21 ((uint32_t)0x00150300) |
| #define RCC_RTCCLKSource_HSE_Div22 ((uint32_t)0x00160300) |
| #define RCC_RTCCLKSource_HSE_Div23 ((uint32_t)0x00170300) |
| #define RCC_RTCCLKSource_HSE_Div24 ((uint32_t)0x00180300) |
| #define RCC_RTCCLKSource_HSE_Div25 ((uint32_t)0x00190300) |
| #define RCC_RTCCLKSource_HSE_Div26 ((uint32_t)0x001A0300) |
| #define RCC_RTCCLKSource_HSE_Div27 ((uint32_t)0x001B0300) |
| #define RCC_RTCCLKSource_HSE_Div28 ((uint32_t)0x001C0300) |
| #define RCC_RTCCLKSource_HSE_Div29 ((uint32_t)0x001D0300) |
| #define RCC_RTCCLKSource_HSE_Div30 ((uint32_t)0x001E0300) |
| #define RCC_RTCCLKSource_HSE_Div31 ((uint32_t)0x001F0300) |
| #define IS_RCC_RTCCLK_SOURCE | ( | SOURCE | ) |
(((SOURCE) == RCC_RTCCLKSource_LSE) || \ ((SOURCE) == RCC_RTCCLKSource_LSI) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div2) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div3) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div4) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div5) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div6) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div7) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div8) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div9) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div10) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div11) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div12) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div13) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div14) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div15) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div16) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div17) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div18) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div19) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div20) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div21) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div22) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div23) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div24) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div25) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div26) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div27) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div28) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div29) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div30) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div31))
| #define RCC_RTCCLKSource_LSE ((uint32_t)0x00000100) |
| #define RCC_RTCCLKSource_LSI ((uint32_t)0x00000200) |
| #define RCC_RTCCLKSource_HSE_Div2 ((uint32_t)0x00020300) |
| #define RCC_RTCCLKSource_HSE_Div3 ((uint32_t)0x00030300) |
| #define RCC_RTCCLKSource_HSE_Div4 ((uint32_t)0x00040300) |
| #define RCC_RTCCLKSource_HSE_Div5 ((uint32_t)0x00050300) |
| #define RCC_RTCCLKSource_HSE_Div6 ((uint32_t)0x00060300) |
| #define RCC_RTCCLKSource_HSE_Div7 ((uint32_t)0x00070300) |
| #define RCC_RTCCLKSource_HSE_Div8 ((uint32_t)0x00080300) |
| #define RCC_RTCCLKSource_HSE_Div9 ((uint32_t)0x00090300) |
| #define RCC_RTCCLKSource_HSE_Div10 ((uint32_t)0x000A0300) |
| #define RCC_RTCCLKSource_HSE_Div11 ((uint32_t)0x000B0300) |
| #define RCC_RTCCLKSource_HSE_Div12 ((uint32_t)0x000C0300) |
| #define RCC_RTCCLKSource_HSE_Div13 ((uint32_t)0x000D0300) |
| #define RCC_RTCCLKSource_HSE_Div14 ((uint32_t)0x000E0300) |
| #define RCC_RTCCLKSource_HSE_Div15 ((uint32_t)0x000F0300) |
| #define RCC_RTCCLKSource_HSE_Div16 ((uint32_t)0x00100300) |
| #define RCC_RTCCLKSource_HSE_Div17 ((uint32_t)0x00110300) |
| #define RCC_RTCCLKSource_HSE_Div18 ((uint32_t)0x00120300) |
| #define RCC_RTCCLKSource_HSE_Div19 ((uint32_t)0x00130300) |
| #define RCC_RTCCLKSource_HSE_Div20 ((uint32_t)0x00140300) |
| #define RCC_RTCCLKSource_HSE_Div21 ((uint32_t)0x00150300) |
| #define RCC_RTCCLKSource_HSE_Div22 ((uint32_t)0x00160300) |
| #define RCC_RTCCLKSource_HSE_Div23 ((uint32_t)0x00170300) |
| #define RCC_RTCCLKSource_HSE_Div24 ((uint32_t)0x00180300) |
| #define RCC_RTCCLKSource_HSE_Div25 ((uint32_t)0x00190300) |
| #define RCC_RTCCLKSource_HSE_Div26 ((uint32_t)0x001A0300) |
| #define RCC_RTCCLKSource_HSE_Div27 ((uint32_t)0x001B0300) |
| #define RCC_RTCCLKSource_HSE_Div28 ((uint32_t)0x001C0300) |
| #define RCC_RTCCLKSource_HSE_Div29 ((uint32_t)0x001D0300) |
| #define RCC_RTCCLKSource_HSE_Div30 ((uint32_t)0x001E0300) |
| #define RCC_RTCCLKSource_HSE_Div31 ((uint32_t)0x001F0300) |
| #define IS_RCC_RTCCLK_SOURCE | ( | SOURCE | ) |
(((SOURCE) == RCC_RTCCLKSource_LSE) || \ ((SOURCE) == RCC_RTCCLKSource_LSI) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div2) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div3) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div4) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div5) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div6) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div7) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div8) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div9) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div10) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div11) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div12) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div13) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div14) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div15) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div16) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div17) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div18) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div19) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div20) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div21) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div22) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div23) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div24) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div25) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div26) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div27) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div28) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div29) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div30) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div31))
| #define RCC_RTCCLKSource_LSE RCC_CSR_RTCSEL_LSE |
| #define RCC_RTCCLKSource_LSI RCC_CSR_RTCSEL_LSI |
| #define RCC_RTCCLKSource_HSE_Div2 RCC_CSR_RTCSEL_HSE |
| #define RCC_RTCCLKSource_HSE_Div4 ((uint32_t)RCC_CSR_RTCSEL_HSE | RCC_CR_RTCPRE_0) |
| #define RCC_RTCCLKSource_HSE_Div8 ((uint32_t)RCC_CSR_RTCSEL_HSE | RCC_CR_RTCPRE_1) |
| #define RCC_RTCCLKSource_HSE_Div16 ((uint32_t)RCC_CSR_RTCSEL_HSE | RCC_CR_RTCPRE) |
| #define IS_RCC_RTCCLK_SOURCE | ( | SOURCE | ) |
(((SOURCE) == RCC_RTCCLKSource_LSE) || \ ((SOURCE) == RCC_RTCCLKSource_LSI) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div2) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div4) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div8) || \ ((SOURCE) == RCC_RTCCLKSource_HSE_Div16))