| /bsp/synwit/libraries/SWM320_drivers/ |
| A D | drv_rtc.c | 58 tm_new.tm_mon = get_datetime.Month - 1; in swm_get_rtc_time_stamp() 74 set_datetime.Month = now.tm_mon + 1; in swm_set_rtc_time_stamp() 85 RTC->MONDAY = (calcWeekDay(set_datetime.Year, set_datetime.Month, set_datetime.Date) in swm_set_rtc_time_stamp() 87 ((set_datetime.Month) << RTC_MONDAY_MON_Pos); in swm_set_rtc_time_stamp() 101 rtc_initstruct.Month = 2; in swm_rtc_configure()
|
| /bsp/synwit/libraries/SWM341_drivers/ |
| A D | drv_rtc.c | 57 tm_new.tm_mon = get_datetime.Month - 1; in swm_get_rtc_time_stamp() 73 set_datetime.Month = now.tm_mon + 1; in swm_set_rtc_time_stamp() 84 RTC->MONDAY = (calcWeekDay(set_datetime.Year, set_datetime.Month, set_datetime.Date) in swm_set_rtc_time_stamp() 86 ((set_datetime.Month) << RTC_MONDAY_MON_Pos); in swm_set_rtc_time_stamp() 101 rtc_initstruct.Month = 2; in swm_rtc_configure()
|
| /bsp/loongson/ls1cdev/drivers/ |
| A D | drv_rtc.c | 45 tm_new.tm_mon = rtcDate.Month- 1; in get_timestamp() 63 rtcDate.Month= now.tm_mon + 1; in set_timestamp() 67 …rt_kprintf("\r\nrtcDate is %d.%d.%d - %d:%d:%d",rtcDate.Year, rtcDate.Month, rtcDate.Date, rtcDate… in set_timestamp()
|
| /bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/src/ |
| A D | n32g45x_rtc.c | 628 if ((RTC_Format == RTC_FORMAT_BIN) && ((RTC_DateStruct->Month & 0x10) == 0x10)) in RTC_SetDate() 630 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate() 635 assert_param(IS_RTC_MONTH(RTC_DateStruct->Month)); in RTC_SetDate() 641 tmpregister = RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_SetDate() 651 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate() 657 | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Month) << 8) in RTC_SetDate() 714 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit() 739 RTC_DateStruct->Month = (uint8_t)((tmpregister & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetDate() 748 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate() 1592 RTC_StampDateStruct->Month = (uint8_t)((tmpdate & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetTimeStamp() [all …]
|
| /bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/src/ |
| A D | n32g4fr_rtc.c | 628 if ((RTC_Format == RTC_FORMAT_BIN) && ((RTC_DateStruct->Month & 0x10) == 0x10)) in RTC_SetDate() 630 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate() 635 assert_param(IS_RTC_MONTH(RTC_DateStruct->Month)); in RTC_SetDate() 641 tmpregister = RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_SetDate() 651 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate() 657 | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Month) << 8) in RTC_SetDate() 712 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit() 737 RTC_DateStruct->Month = (uint8_t)((tmpregister & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetDate() 746 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate() 1591 RTC_StampDateStruct->Month = (uint8_t)((tmpdate & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetTimeStamp() [all …]
|
| /bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/src/ |
| A D | n32wb452_rtc.c | 628 if ((RTC_Format == RTC_FORMAT_BIN) && ((RTC_DateStruct->Month & 0x10) == 0x10)) in RTC_SetDate() 630 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate() 635 assert_param(IS_RTC_MONTH(RTC_DateStruct->Month)); in RTC_SetDate() 641 tmpregister = RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_SetDate() 651 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate() 657 | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Month) << 8) in RTC_SetDate() 714 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit() 739 RTC_DateStruct->Month = (uint8_t)((tmpregister & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetDate() 748 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate() 1592 RTC_StampDateStruct->Month = (uint8_t)((tmpdate & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetTimeStamp() [all …]
|
| /bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/ |
| A D | n32g45x_rtc.c | 625 if ((RTC_Format == RTC_FORMAT_BIN) && ((RTC_DateStruct->Month & 0x10) == 0x10)) in RTC_SetDate() 627 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate() 632 assert_param(IS_RTC_MONTH(RTC_DateStruct->Month)); in RTC_SetDate() 638 tmpregister = RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_SetDate() 648 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate() 654 | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Month) << 8) in RTC_SetDate() 709 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit() 734 RTC_DateStruct->Month = (uint8_t)((tmpregister & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetDate() 743 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate() 1595 RTC_StampDateStruct->Month = (uint8_t)((tmpdate & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetTimeStamp() [all …]
|
| /bsp/synwit/libraries/SWM320_CSL/SWM320_StdPeriph_Driver/ |
| A D | SWM320_rtc.h | 16 uint8_t Month; //取值1--12 member 35 uint8_t Month; member
|
| A D | SWM320_rtc.c | 53 …RTCx->MONDAY = (calcWeekDay(initStruct->Year, initStruct->Month, initStruct->Date) << RTC_MONDAY_D… in RTC_Init() 54 (initStruct->Month << RTC_MONDAY_MON_Pos); in RTC_Init() 109 dateTime->Month = (RTCx->MONDAY & RTC_MONDAY_MON_Msk) >> RTC_MONDAY_MON_Pos; in RTC_GetDateTime()
|
| /bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/ |
| A D | SWM341_rtc.c | 59 …RTCx->MONDAY = (calcWeekDay(initStruct->Year, initStruct->Month, initStruct->Date) << RTC_MONDAY_D… in RTC_Init() 60 (initStruct->Month << RTC_MONDAY_MON_Pos); in RTC_Init() 115 dateTime->Month = (RTCx->MONDAY & RTC_MONDAY_MON_Msk) >> RTC_MONDAY_MON_Pos; in RTC_GetDateTime()
|
| A D | SWM341_rtc.h | 20 uint8_t Month; //取值1--12 member 39 uint8_t Month; member
|
| /bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/ |
| A D | stm32l1xx_ll_rtc.c | 379 if ((RTC_Format == LL_RTC_FORMAT_BIN) && ((RTC_DateStruct->Month & 0x10U) == 0x10U)) in LL_RTC_DATE_Init() 381 RTC_DateStruct->Month = ((RTC_DateStruct->Month & (uint8_t)~(0x10U)) + 0x0AU); in LL_RTC_DATE_Init() 386 assert_param(IS_LL_RTC_MONTH(RTC_DateStruct->Month)); in LL_RTC_DATE_Init() 392 assert_param(IS_LL_RTC_MONTH(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Month))); in LL_RTC_DATE_Init() 406 …LL_RTC_DATE_Config(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_… in LL_RTC_DATE_Init() 411 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init() 447 RTC_DateStruct->Month = LL_RTC_MONTH_JANUARY; in LL_RTC_DATE_StructInit()
|
| A D | stm32l1xx_hal_rtc.c | 926 if ((Format == RTC_FORMAT_BIN) && ((sDate->Month & 0x10U) == 0x10U)) in HAL_RTC_SetDate() 928 sDate->Month = (uint8_t)((sDate->Month & (uint8_t)~(0x10U)) + (uint8_t)0x0AU); in HAL_RTC_SetDate() 936 assert_param(IS_RTC_MONTH(sDate->Month)); in HAL_RTC_SetDate() 940 ((uint32_t)RTC_ByteToBcd2(sDate->Month) << 8U) | \ in HAL_RTC_SetDate() 947 assert_param(IS_RTC_MONTH(RTC_Bcd2ToByte(sDate->Month))); in HAL_RTC_SetDate() 951 (((uint32_t)sDate->Month) << 8U) | \ in HAL_RTC_SetDate() 1032 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> 8U); in HAL_RTC_GetDate() 1041 sDate->Month = (uint8_t)RTC_Bcd2ToByte(sDate->Month); in HAL_RTC_GetDate()
|
| /bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/ |
| A D | n32l40x_rtc.c | 674 if ((RTC_Format == RTC_FORMAT_BIN) && ((RTC_DateStruct->Month & 0x10) == 0x10)) in RTC_SetDate() 676 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate() 681 assert_param(IS_RTC_MONTH(RTC_DateStruct->Month)); in RTC_SetDate() 687 tmpregister = RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_SetDate() 697 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate() 703 | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Month) << 8) in RTC_SetDate() 760 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit() 785 RTC_DateStruct->Month = (uint8_t)((tmpregister & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetDate() 794 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate() 1639 RTC_StampDateStruct->Month = (uint8_t)((tmpdate & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetTimeStamp() [all …]
|
| /bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/ |
| A D | n32l43x_rtc.c | 621 if ((RTC_Format == RTC_FORMAT_BIN) && ((RTC_DateStruct->Month & 0x10) == 0x10)) in RTC_SetDate() 623 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate() 628 assert_param(IS_RTC_MONTH(RTC_DateStruct->Month)); in RTC_SetDate() 634 tmpregister = RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_SetDate() 643 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate() 649 | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Month) << 8) in RTC_SetDate() 702 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit() 724 RTC_DateStruct->Month = (uint8_t)((tmpregister & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetDate() 732 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate() 1490 RTC_StampDateStruct->Month = (uint8_t)((tmpdate & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetTimeStamp() [all …]
|
| /bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/ |
| A D | n32g43x_rtc.c | 662 if ((RTC_Format == RTC_FORMAT_BIN) && ((RTC_DateStruct->Month & 0x10) == 0x10)) in RTC_SetDate() 664 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate() 669 assert_param(IS_RTC_MONTH(RTC_DateStruct->Month)); in RTC_SetDate() 675 tmpregister = RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_SetDate() 685 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate() 691 | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Month) << 8) in RTC_SetDate() 748 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit() 773 RTC_DateStruct->Month = (uint8_t)((tmpregister & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetDate() 782 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate() 1627 RTC_StampDateStruct->Month = (uint8_t)((tmpdate & (RTC_DATE_MOT | RTC_DATE_MOU)) >> 8); in RTC_GetTimeStamp() [all …]
|
| /bsp/stm32/libraries/HAL_Drivers/drivers/ |
| A D | drv_rtc.c | 72 tm_new.tm_mon = RTC_DateStruct.Month - 1; in stm32_rtc_get_timeval() 106 RTC_DateStruct.Month = tm.tm_mon + 1 ; in set_rtc_time_stamp() 125 HAL_RTCEx_BKUPWrite(&RTC_Handler, RTC_BKP_DR3, RTC_DateStruct.Month); in set_rtc_time_stamp() 142 RTC_DateStruct.Month = HAL_RTCEx_BKUPRead(&RTC_Handler, RTC_BKP_DR3); in rt_rtc_f1_bkp_update() 155 HAL_RTCEx_BKUPWrite(&RTC_Handler, RTC_BKP_DR3, RTC_DateStruct.Month); in rt_rtc_f1_bkp_update()
|
| /bsp/loongson/ls1cdev/libraries/ |
| A D | ls1c_rtc.c | 37 = (sTime->Month << LS1C_MONTH_OFFSET) in RTC_SetTime() 57 sTime->Month = ls1c_get_month(toy_read0); in RTC_GetTime()
|
| A D | ls1c_rtc.h | 20 unsigned char Month; /*1 ~ 12 */ member
|
| /bsp/Vango/v85xx/Libraries/VangoV85xx_standard_peripheral/Source/ |
| A D | lib_rtc.c | 141 assert_parameters(IS_RTC_TIME_MONTH(sTime->Month)); in RTC_SetTime() 160 RTC->MON = sTime->Month; in RTC_SetTime() 193 gTime->Month = RTC->MON; in RTC_GetTime()
|
| /bsp/n32/libraries/n32_drivers/ |
| A D | drv_rtc.c | 35 tm_new.tm_mon = RTC_DateStructure.Month - 1; in n32_rtc_get_timeval() 59 RTC_DateStructure.Month = time.tm_mon + 1 ; in set_rtc_time_stamp()
|
| /bsp/Vango/v85xxp/Libraries/VangoV85xxP_standard_peripheral/Source/ |
| A D | lib_rtc.c | 145 assert_parameters(IS_RTC_TIME_MONTH(sTime->Month)); in RTC_SetTime() 179 RTC->MON = sTime->Month; in RTC_SetTime() 219 gTime->Month = RTC->MON; in RTC_GetTime()
|
| /bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Inc/ |
| A D | stm32l1xx_ll_rtc.h | 143 uint8_t Month; /*!< Specifies the RTC Date Month. member 1465 __STATIC_INLINE void LL_RTC_DATE_SetMonth(RTC_TypeDef *RTCx, uint32_t Month) in LL_RTC_DATE_SetMonth() argument 1468 (((Month & 0xF0U) << (RTC_DR_MT_Pos - 4U)) | ((Month & 0x0FU) << RTC_DR_MU_Pos))); in LL_RTC_DATE_SetMonth() 1563 …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 1569 (((Month & 0xF0U) << (RTC_DR_MT_Pos - 4U)) | ((Month & 0x0FU) << RTC_DR_MU_Pos)) | \ in LL_RTC_DATE_Config()
|
| /bsp/Vango/v85xx/Libraries/VangoV85xx_standard_peripheral/Include/ |
| A D | lib_rtc.h | 26 uint32_t Month; member
|
| /bsp/Vango/v85xxp/Libraries/VangoV85xxP_standard_peripheral/Include/ |
| A D | lib_rtc.h | 26 uint32_t Month; member
|