/hal_stm32-latest/stm32cube/stm32f1xx/drivers/src/ |
D | stm32f1xx_hal_rtc.c | 394 hrtc->DateToUpdate.Year = 0x00U; in HAL_RTC_Init() 934 assert_param(IS_RTC_YEAR(sDate->Year)); in HAL_RTC_SetDate() 939 hrtc->DateToUpdate.Year = sDate->Year; in HAL_RTC_SetDate() 945 assert_param(IS_RTC_YEAR(RTC_Bcd2ToByte(sDate->Year))); in HAL_RTC_SetDate() 950 hrtc->DateToUpdate.Year = RTC_Bcd2ToByte(sDate->Year); in HAL_RTC_SetDate() 956 …hrtc->DateToUpdate.WeekDay = RTC_WeekDayNum(hrtc->DateToUpdate.Year, hrtc->DateToUpdate.Month, hrt… in HAL_RTC_SetDate() 1049 sDate->Year = hrtc->DateToUpdate.Year; in HAL_RTC_GetDate() 1057 sDate->Year = (uint8_t)RTC_ByteToBcd2(sDate->Year); in HAL_RTC_GetDate() 1791 year = hrtc->DateToUpdate.Year; in RTC_DateUpdate() 1864 hrtc->DateToUpdate.Year = year; in RTC_DateUpdate()
|
/hal_stm32-latest/stm32cube/stm32l4xx/drivers/src/ |
D | stm32l4xx_hal_rtc.c | 960 assert_param(IS_RTC_YEAR(sDate->Year)); in HAL_RTC_SetDate() 964 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 971 assert_param(IS_RTC_YEAR(RTC_Bcd2ToByte(sDate->Year))); in HAL_RTC_SetDate() 975 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1034 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 1043 sDate->Year = (uint8_t)RTC_Bcd2ToByte(sDate->Year); in HAL_RTC_GetDate() 1630 assert_param(IS_RTC_YEAR(sDate->Year)); in HAL_RTC_SetDate() 1634 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1641 assert_param(IS_RTC_YEAR(RTC_Bcd2ToByte(sDate->Year))); in HAL_RTC_SetDate() 1645 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() [all …]
|
D | stm32l4xx_ll_rtc.c | 375 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 381 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 396 …g(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_DateStruct->Year); in LL_RTC_DATE_Init() 401 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 434 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32c0xx/drivers/src/ |
D | stm32c0xx_ll_rtc.c | 358 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 364 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 380 RTC_DateStruct->Year); in LL_RTC_DATE_Init() 386 __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 419 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
D | stm32c0xx_hal_rtc.c | 743 assert_param(IS_RTC_YEAR(sDate->Year)); in HAL_RTC_SetDate() 747 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 754 assert_param(IS_RTC_YEAR(RTC_Bcd2ToByte(sDate->Year))); in HAL_RTC_SetDate() 758 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 816 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 825 sDate->Year = (uint8_t)RTC_Bcd2ToByte(sDate->Year); in HAL_RTC_GetDate()
|
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/src/ |
D | stm32f0xx_ll_rtc.c | 362 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 368 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 383 …g(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_DateStruct->Year); in LL_RTC_DATE_Init() 388 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 421 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
D | stm32f0xx_hal_rtc.c | 889 assert_param(IS_RTC_YEAR(sDate->Year)); in HAL_RTC_SetDate() 893 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 900 assert_param(IS_RTC_YEAR(RTC_Bcd2ToByte(sDate->Year))); in HAL_RTC_SetDate() 904 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 967 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 976 sDate->Year = (uint8_t)RTC_Bcd2ToByte(sDate->Year); in HAL_RTC_GetDate()
|
/hal_stm32-latest/stm32cube/stm32wb0x/drivers/src/ |
D | stm32wb0x_ll_rtc.c | 353 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 359 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 374 …g(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_DateStruct->Year); in LL_RTC_DATE_Init() 379 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 412 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
D | stm32wb0x_hal_rtc.c | 800 assert_param(IS_RTC_YEAR(sDate->Year)); in HAL_RTC_SetDate() 804 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 811 assert_param(IS_RTC_YEAR(RTC_Bcd2ToByte(sDate->Year))); in HAL_RTC_SetDate() 815 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 878 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 887 sDate->Year = (uint8_t)RTC_Bcd2ToByte(sDate->Year); in HAL_RTC_GetDate()
|
/hal_stm32-latest/stm32cube/stm32wb0x/drivers/include/ |
D | stm32wb0x_ll_rtc.h | 153 uint8_t Year; /*!< Specifies the RTC Date Year. member 1098 __STATIC_INLINE void LL_RTC_DATE_SetYear(RTC_TypeDef *RTCx, uint32_t Year) in LL_RTC_DATE_SetYear() argument 1101 (((Year & 0xF0U) << (RTC_DR_YT_Pos - 4U)) | ((Year & 0x0FU) << RTC_DR_YU_Pos))); in LL_RTC_DATE_SetYear() 1277 …L_RTC_DATE_Config(RTC_TypeDef *RTCx, uint32_t WeekDay, uint32_t Day, uint32_t Month, uint32_t Year) in LL_RTC_DATE_Config() argument 1282 (((Year & 0xF0U) << (RTC_DR_YT_Pos - 4U)) | ((Year & 0x0FU) << RTC_DR_YU_Pos)) | \ in LL_RTC_DATE_Config()
|
/hal_stm32-latest/stm32cube/stm32f2xx/drivers/src/ |
D | stm32f2xx_hal_rtc.c | 840 assert_param(IS_RTC_YEAR(sDate->Year)); in HAL_RTC_SetDate() 844 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 851 assert_param(IS_RTC_YEAR(RTC_Bcd2ToByte(sDate->Year))); in HAL_RTC_SetDate() 855 datetmpreg = ((((uint32_t)sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 918 sDate->Year = (uint8_t)((datetmpreg & (RTC_DR_YT | RTC_DR_YU)) >> RTC_DR_YU_Pos); in HAL_RTC_GetDate() 927 sDate->Year = (uint8_t)RTC_Bcd2ToByte(sDate->Year); in HAL_RTC_GetDate()
|
D | stm32f2xx_ll_rtc.c | 356 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 362 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 377 …g(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_DateStruct->Year); in LL_RTC_DATE_Init() 382 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 407 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32c0xx/drivers/include/ |
D | stm32c0xx_ll_rtc.h | 158 uint8_t Year; /*!< Specifies the RTC Date Year. member 1228 __STATIC_INLINE void LL_RTC_DATE_SetYear(RTC_TypeDef *RTCx, uint32_t Year) in LL_RTC_DATE_SetYear() argument 1231 (((Year & 0xF0U) << (RTC_DR_YT_Pos - 4U)) | ((Year & 0x0FU) << RTC_DR_YU_Pos))); in LL_RTC_DATE_SetYear() 1408 uint32_t Year) in LL_RTC_DATE_Config() argument 1413 (((Year & 0xF0U) << (RTC_DR_YT_Pos - 4U)) | ((Year & 0x0FU) << RTC_DR_YU_Pos)) | \ in LL_RTC_DATE_Config()
|
/hal_stm32-latest/stm32cube/stm32h7rsxx/drivers/src/ |
D | stm32h7rsxx_ll_rtc.c | 376 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 382 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 398 RTC_DateStruct->Year); in LL_RTC_DATE_Init() 404 __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 437 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32u0xx/drivers/src/ |
D | stm32u0xx_ll_rtc.c | 378 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 384 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 400 RTC_DateStruct->Year); in LL_RTC_DATE_Init() 406 __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 439 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/src/ |
D | stm32f3xx_ll_rtc.c | 368 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 374 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 389 …g(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_DateStruct->Year); in LL_RTC_DATE_Init() 394 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 427 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32f4xx/drivers/src/ |
D | stm32f4xx_ll_rtc.c | 368 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 374 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 389 …g(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_DateStruct->Year); in LL_RTC_DATE_Init() 394 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 427 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/src/ |
D | stm32wbxx_ll_rtc.c | 388 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 394 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 410 RTC_DateStruct->Year); in LL_RTC_DATE_Init() 416 __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 449 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32f7xx/drivers/src/ |
D | stm32f7xx_ll_rtc.c | 371 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 377 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 392 …g(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_DateStruct->Year); in LL_RTC_DATE_Init() 397 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 430 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/src/ |
D | stm32l0xx_ll_rtc.c | 371 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 377 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 392 …g(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_DateStruct->Year); in LL_RTC_DATE_Init() 397 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 430 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32n6xx/drivers/src/ |
D | stm32n6xx_ll_rtc.c | 381 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 387 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 403 RTC_DateStruct->Year); in LL_RTC_DATE_Init() 409 __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 442 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_ll_rtc.c | 387 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 393 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 408 …g(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_DateStruct->Year); in LL_RTC_DATE_Init() 413 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 446 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/src/ |
D | stm32h5xx_ll_rtc.c | 381 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 387 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 403 RTC_DateStruct->Year); in LL_RTC_DATE_Init() 409 __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 442 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/src/ |
D | stm32g0xx_ll_rtc.c | 371 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 377 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 392 …g(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_DateStruct->Year); in LL_RTC_DATE_Init() 397 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 430 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/src/ |
D | stm32l1xx_ll_rtc.c | 376 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 382 assert_param(IS_LL_RTC_YEAR(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Year))); in LL_RTC_DATE_Init() 397 …g(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_DateStruct->Year); in LL_RTC_DATE_Init() 402 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 439 RTC_DateStruct->Year = 0U; in LL_RTC_DATE_StructInit()
|