/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/ |
D | stm32l4xx_hal_rtc.c | 928 uint32_t datetmpreg; in HAL_RTC_SetDate() local 952 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 963 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 977 WRITE_REG(RTC->DR, (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK)); in HAL_RTC_SetDate() 1012 uint32_t datetmpreg; in HAL_RTC_GetDate() local 1019 datetmpreg = (uint32_t)(READ_REG(RTC->DR) & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 1022 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 1023 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 1024 sDate->Date = (uint8_t)((datetmpreg & (RTC_DR_DT | RTC_DR_DU)) >> RTC_DR_DU_Pos); in HAL_RTC_GetDate() 1025 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32f0xx/drivers/src/ |
D | stm32f0xx_hal_rtc.c | 861 uint32_t datetmpreg = 0U; in HAL_RTC_SetDate() local 885 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 896 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 911 hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); in HAL_RTC_SetDate() 950 uint32_t datetmpreg = 0U; in HAL_RTC_GetDate() local 956 datetmpreg = (uint32_t)(hrtc->Instance->DR & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 959 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 960 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 961 sDate->Date = (uint8_t) (datetmpreg & (RTC_DR_DT | RTC_DR_DU)); in HAL_RTC_GetDate() 962 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32f2xx/drivers/src/ |
D | stm32f2xx_hal_rtc.c | 818 uint32_t datetmpreg = 0U; in HAL_RTC_SetDate() local 842 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 853 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 868 hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); in HAL_RTC_SetDate() 907 uint32_t datetmpreg = 0U; in HAL_RTC_GetDate() local 913 datetmpreg = (uint32_t)(hrtc->Instance->DR & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 916 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 917 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 918 sDate->Date = (uint8_t) (datetmpreg & (RTC_DR_DT | RTC_DR_DU)); in HAL_RTC_GetDate() 919 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32c0xx/drivers/src/ |
D | stm32c0xx_hal_rtc.c | 718 uint32_t datetmpreg; in HAL_RTC_SetDate() local 742 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 753 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 767 hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); in HAL_RTC_SetDate() 802 uint32_t datetmpreg; in HAL_RTC_GetDate() local 808 datetmpreg = (uint32_t)(hrtc->Instance->DR & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 811 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 812 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 813 sDate->Date = (uint8_t)((datetmpreg & (RTC_DR_DT | RTC_DR_DU)) >> RTC_DR_DU_Pos); in HAL_RTC_GetDate() 814 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32f7xx/drivers/src/ |
D | stm32f7xx_hal_rtc.c | 869 uint32_t datetmpreg = 0U; in HAL_RTC_SetDate() local 893 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 904 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 919 hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); in HAL_RTC_SetDate() 958 uint32_t datetmpreg = 0U; in HAL_RTC_GetDate() local 964 datetmpreg = (uint32_t)(hrtc->Instance->DR & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 967 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 968 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 969 sDate->Date = (uint8_t) (datetmpreg & (RTC_DR_DT | RTC_DR_DU)); in HAL_RTC_GetDate() 970 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32f4xx/drivers/src/ |
D | stm32f4xx_hal_rtc.c | 847 uint32_t datetmpreg = 0U; in HAL_RTC_SetDate() local 871 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 882 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 897 hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); in HAL_RTC_SetDate() 936 uint32_t datetmpreg = 0U; in HAL_RTC_GetDate() local 942 datetmpreg = (uint32_t)(hrtc->Instance->DR & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 945 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 946 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 947 sDate->Date = (uint8_t) (datetmpreg & (RTC_DR_DT | RTC_DR_DU)); in HAL_RTC_GetDate() 948 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32f3xx/drivers/src/ |
D | stm32f3xx_hal_rtc.c | 868 uint32_t datetmpreg = 0U; in HAL_RTC_SetDate() local 892 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 903 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 918 hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); in HAL_RTC_SetDate() 957 uint32_t datetmpreg = 0U; in HAL_RTC_GetDate() local 963 datetmpreg = (uint32_t)(hrtc->Instance->DR & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 966 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 967 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 968 sDate->Date = (uint8_t) (datetmpreg & (RTC_DR_DT | RTC_DR_DU)); in HAL_RTC_GetDate() 969 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32l1xx/drivers/src/ |
D | stm32l1xx_hal_rtc.c | 883 uint32_t datetmpreg = 0U; in HAL_RTC_SetDate() local 907 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 918 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 933 hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); in HAL_RTC_SetDate() 972 uint32_t datetmpreg = 0U; in HAL_RTC_GetDate() local 978 datetmpreg = (uint32_t)(hrtc->Instance->DR & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 981 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 982 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 983 sDate->Date = (uint8_t) (datetmpreg & (RTC_DR_DT | RTC_DR_DU)); in HAL_RTC_GetDate() 984 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32mp1xx/drivers/src/ |
D | stm32mp1xx_hal_rtc.c | 909 uint32_t datetmpreg; in HAL_RTC_SetDate() local 933 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 944 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 958 WRITE_REG(RTC->DR, (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK)); in HAL_RTC_SetDate() 993 uint32_t datetmpreg; in HAL_RTC_GetDate() local 1000 datetmpreg = (uint32_t)(READ_REG(RTC->DR) & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 1003 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 1004 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 1005 sDate->Date = (uint8_t)((datetmpreg & (RTC_DR_DT | RTC_DR_DU)) >> RTC_DR_DU_Pos); in HAL_RTC_GetDate() 1006 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32wbxx/drivers/src/ |
D | stm32wbxx_hal_rtc.c | 946 uint32_t datetmpreg; in HAL_RTC_SetDate() local 969 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << 16U) | \ in HAL_RTC_SetDate() 980 datetmpreg = ((((uint32_t)sDate->Year) << 16U) | \ in HAL_RTC_SetDate() 1006 hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); in HAL_RTC_SetDate() 1055 uint32_t datetmpreg; in HAL_RTC_GetDate() local 1061 datetmpreg = (uint32_t)(hrtc->Instance->DR & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 1064 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> 16U); in HAL_RTC_GetDate() 1065 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> 8U); in HAL_RTC_GetDate() 1066 sDate->Date = (uint8_t)(datetmpreg & (RTC_DR_DT | RTC_DR_DU)); in HAL_RTC_GetDate() 1067 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> 13U); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32g0xx/drivers/src/ |
D | stm32g0xx_hal_rtc.c | 909 uint32_t datetmpreg; in HAL_RTC_SetDate() local 933 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 944 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 958 hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); in HAL_RTC_SetDate() 993 uint32_t datetmpreg; in HAL_RTC_GetDate() local 999 datetmpreg = (uint32_t)(hrtc->Instance->DR & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 1002 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 1003 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 1004 sDate->Date = (uint8_t)((datetmpreg & (RTC_DR_DT | RTC_DR_DU)) >> RTC_DR_DU_Pos); in HAL_RTC_GetDate() 1005 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32l0xx/drivers/src/ |
D | stm32l0xx_hal_rtc.c | 881 uint32_t datetmpreg = 0U; in HAL_RTC_SetDate() local 905 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 916 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 931 hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); in HAL_RTC_SetDate() 970 uint32_t datetmpreg = 0U; in HAL_RTC_GetDate() local 976 datetmpreg = (uint32_t)(hrtc->Instance->DR & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 979 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 980 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 981 sDate->Date = (uint8_t) (datetmpreg & (RTC_DR_DT | RTC_DR_DU)); in HAL_RTC_GetDate() 982 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_hal_rtc.c | 969 uint32_t datetmpreg; in HAL_RTC_SetDate() local 993 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1004 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1019 hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); in HAL_RTC_SetDate() 1057 uint32_t datetmpreg; in HAL_RTC_GetDate() local 1063 datetmpreg = (uint32_t)(hrtc->Instance->DR & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 1066 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 1067 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 1068 sDate->Date = (uint8_t)((datetmpreg & (RTC_DR_DT | RTC_DR_DU)) >> RTC_DR_DU_Pos); in HAL_RTC_GetDate() 1069 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32g4xx/drivers/src/ |
D | stm32g4xx_hal_rtc.c | 1010 uint32_t datetmpreg; in HAL_RTC_SetDate() local 1034 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1045 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1059 WRITE_REG(hrtc->Instance->DR, (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK)); in HAL_RTC_SetDate() 1094 uint32_t datetmpreg; in HAL_RTC_GetDate() local 1100 datetmpreg = (uint32_t)(READ_REG(hrtc->Instance->DR) & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 1103 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 1104 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 1105 sDate->Date = (uint8_t)((datetmpreg & (RTC_DR_DT | RTC_DR_DU)) >> RTC_DR_DU_Pos); in HAL_RTC_GetDate() 1106 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32wlxx/drivers/src/ |
D | stm32wlxx_hal_rtc.c | 923 uint32_t datetmpreg; in HAL_RTC_SetDate() local 947 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 958 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 972 WRITE_REG(RTC->DR, (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK)); in HAL_RTC_SetDate() 1007 uint32_t datetmpreg; in HAL_RTC_GetDate() local 1014 datetmpreg = (uint32_t)(READ_REG(RTC->DR) & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 1017 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 1018 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 1019 sDate->Date = (uint8_t)((datetmpreg & (RTC_DR_DT | RTC_DR_DU)) >> RTC_DR_DU_Pos); in HAL_RTC_GetDate() 1020 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_hal_rtc.c | 979 uint32_t datetmpreg; in HAL_RTC_SetDate() local 1003 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1014 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1028 WRITE_REG(RTC->DR, (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK)); in HAL_RTC_SetDate() 1063 uint32_t datetmpreg; in HAL_RTC_GetDate() local 1070 datetmpreg = (uint32_t)(READ_REG(RTC->DR) & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 1073 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 1074 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 1075 sDate->Date = (uint8_t)((datetmpreg & (RTC_DR_DT | RTC_DR_DU)) >> RTC_DR_DU_Pos); in HAL_RTC_GetDate() 1076 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32u5xx/drivers/src/ |
D | stm32u5xx_hal_rtc.c | 1211 uint32_t datetmpreg; in HAL_RTC_SetDate() local 1235 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1246 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1260 WRITE_REG(RTC->DR, (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK)); in HAL_RTC_SetDate() 1295 uint32_t datetmpreg; in HAL_RTC_GetDate() local 1302 datetmpreg = (uint32_t)(READ_REG(RTC->DR) & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 1305 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 1306 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 1307 sDate->Date = (uint8_t)((datetmpreg & (RTC_DR_DT | RTC_DR_DU)) >> RTC_DR_DU_Pos); in HAL_RTC_GetDate() 1308 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32wbaxx/drivers/src/ |
D | stm32wbaxx_hal_rtc.c | 1097 uint32_t datetmpreg; in HAL_RTC_SetDate() local 1122 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1133 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1147 WRITE_REG(RTC->DR, (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK)); in HAL_RTC_SetDate() 1183 uint32_t datetmpreg; in HAL_RTC_GetDate() local 1192 datetmpreg = (uint32_t)(READ_REG(RTC->DR) & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 1195 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 1196 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 1197 sDate->Date = (uint8_t)((datetmpreg & (RTC_DR_DT | RTC_DR_DU)) >> RTC_DR_DU_Pos); in HAL_RTC_GetDate() 1198 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|
/hal_stm32-3.5.0/stm32cube/stm32h5xx/drivers/src/ |
D | stm32h5xx_hal_rtc.c | 1185 uint32_t datetmpreg; in HAL_RTC_SetDate() local 1210 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1221 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1235 WRITE_REG(RTC->DR, (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK)); in HAL_RTC_SetDate() 1271 uint32_t datetmpreg; in HAL_RTC_GetDate() local 1280 datetmpreg = (uint32_t)(READ_REG(RTC->DR) & RTC_DR_RESERVED_MASK); in HAL_RTC_GetDate() 1283 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 1284 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate() 1285 sDate->Date = (uint8_t)((datetmpreg & (RTC_DR_DT | RTC_DR_DU)) >> RTC_DR_DU_Pos); in HAL_RTC_GetDate() 1286 sDate->WeekDay = (uint8_t)((datetmpreg & (RTC_DR_WDU)) >> RTC_DR_WDU_Pos); in HAL_RTC_GetDate()
|