Home
last modified time | relevance | path

Searched refs:RTC_DateStruct (Results 1 – 22 of 22) sorted by relevance

/bsp/stm32/libraries/HAL_Drivers/drivers/
A Ddrv_rtc.c62 RTC_DateTypeDef RTC_DateStruct = {0}; in stm32_rtc_get_timeval() local
66 HAL_RTC_GetDate(&RTC_Handler, &RTC_DateStruct, RTC_FORMAT_BIN); in stm32_rtc_get_timeval()
71 tm_new.tm_mday = RTC_DateStruct.Date; in stm32_rtc_get_timeval()
72 tm_new.tm_mon = RTC_DateStruct.Month - 1; in stm32_rtc_get_timeval()
73 tm_new.tm_year = RTC_DateStruct.Year + 100; in stm32_rtc_get_timeval()
90 RTC_DateTypeDef RTC_DateStruct = {0}; in set_rtc_time_stamp() local
105 RTC_DateStruct.Date = tm.tm_mday; in set_rtc_time_stamp()
106 RTC_DateStruct.Month = tm.tm_mon + 1 ; in set_rtc_time_stamp()
107 RTC_DateStruct.Year = tm.tm_year - 100; in set_rtc_time_stamp()
108 RTC_DateStruct.WeekDay = tm.tm_wday + 1; in set_rtc_time_stamp()
[all …]
/bsp/acm32/acm32f0x0-nucleo/drivers/
A Ddrv_rtc.c32 RTC_DateTypeDef RTC_DateStruct = {0}; in get_rtc_timestamp() local
36 HAL_RTC_GetDate(&RTC_DateStruct); in get_rtc_timestamp()
41 tm_new.tm_mday = hex2dec(RTC_DateStruct.u8_Date); in get_rtc_timestamp()
42 tm_new.tm_mon = hex2dec(RTC_DateStruct.u8_Month) - 1; in get_rtc_timestamp()
43 tm_new.tm_year = hex2dec(RTC_DateStruct.u8_Year) + 100; in get_rtc_timestamp()
51 RTC_DateTypeDef RTC_DateStruct = {0}; in set_rtc_time_stamp() local
63 RTC_DateStruct.u8_Date = dec2hex(now.tm_mday); in set_rtc_time_stamp()
64 RTC_DateStruct.u8_Month = dec2hex(now.tm_mon + 1); in set_rtc_time_stamp()
65 RTC_DateStruct.u8_Year = dec2hex(now.tm_year - 100); in set_rtc_time_stamp()
66 RTC_DateStruct.u8_WeekDay = dec2hex(now.tm_wday) + 1; in set_rtc_time_stamp()
[all …]
/bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/
A Dstm32l1xx_ll_rtc.c381 RTC_DateStruct->Month = ((RTC_DateStruct->Month & (uint8_t)~(0x10U)) + 0x0AU); in LL_RTC_DATE_Init()
385 assert_param(IS_LL_RTC_YEAR(RTC_DateStruct->Year)); in LL_RTC_DATE_Init()
386 assert_param(IS_LL_RTC_MONTH(RTC_DateStruct->Month)); in LL_RTC_DATE_Init()
387 assert_param(IS_LL_RTC_DAY(RTC_DateStruct->Day)); 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()
410 … LL_RTC_DATE_Config(RTCx, RTC_DateStruct->WeekDay, __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Day), 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()
445 RTC_DateStruct->WeekDay = LL_RTC_WEEKDAY_MONDAY; in LL_RTC_DATE_StructInit()
446 RTC_DateStruct->Day = 1U; in LL_RTC_DATE_StructInit()
447 RTC_DateStruct->Month = LL_RTC_MONTH_JANUARY; in LL_RTC_DATE_StructInit()
[all …]
/bsp/ft32/libraries/FT32F0xx/FT32F0xx_Driver/Src/
A Dft32f0xx_rtc.c615 RTC_DateStruct->RTC_Month = (RTC_DateStruct->RTC_Month & (uint32_t)~(0x10)) + 0x0A; in RTC_SetDate()
628 tmpreg = RTC_Bcd2ToByte(RTC_DateStruct->RTC_Date); in RTC_SetDate()
638 ((uint32_t)RTC_DateStruct->RTC_Date) | \ in RTC_SetDate()
699 RTC_DateStruct->RTC_WeekDay = RTC_Weekday_Monday; in RTC_DateStructInit()
700 RTC_DateStruct->RTC_Date = 1; in RTC_DateStructInit()
701 RTC_DateStruct->RTC_Month = RTC_Month_January; in RTC_DateStructInit()
702 RTC_DateStruct->RTC_Year = 0; in RTC_DateStructInit()
735 RTC_DateStruct->RTC_Year = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Year); in RTC_GetDate()
736 RTC_DateStruct->RTC_Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Month); in RTC_GetDate()
737 RTC_DateStruct->RTC_Date = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Date); in RTC_GetDate()
[all …]
/bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/src/
A Dn32g45x_rtc.c630 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate()
651 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate()
652 … | ((uint32_t)RTC_DateStruct->Date) | (((uint32_t)RTC_DateStruct->WeekDay) << 13)); in RTC_SetDate()
658 … | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Date)) | ((uint32_t)RTC_DateStruct->WeekDay << 13)); in RTC_SetDate()
712 RTC_DateStruct->WeekDay = RTC_WEEKDAY_MONDAY; in RTC_DateStructInit()
713 RTC_DateStruct->Date = 1; in RTC_DateStructInit()
714 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit()
715 RTC_DateStruct->Year = 0; in RTC_DateStructInit()
747 RTC_DateStruct->Year = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Year); in RTC_GetDate()
748 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate()
[all …]
/bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/src/
A Dn32g4fr_rtc.c630 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate()
651 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate()
652 … | ((uint32_t)RTC_DateStruct->Date) | (((uint32_t)RTC_DateStruct->WeekDay) << 13)); in RTC_SetDate()
658 … | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Date)) | ((uint32_t)RTC_DateStruct->WeekDay << 13)); in RTC_SetDate()
710 RTC_DateStruct->WeekDay = RTC_WEEKDAY_MONDAY; in RTC_DateStructInit()
711 RTC_DateStruct->Date = 1; in RTC_DateStructInit()
712 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit()
713 RTC_DateStruct->Year = 0; in RTC_DateStructInit()
745 RTC_DateStruct->Year = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Year); in RTC_GetDate()
746 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate()
[all …]
/bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/src/
A Dn32wb452_rtc.c630 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate()
651 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate()
652 … | ((uint32_t)RTC_DateStruct->Date) | (((uint32_t)RTC_DateStruct->WeekDay) << 13)); in RTC_SetDate()
658 … | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Date)) | ((uint32_t)RTC_DateStruct->WeekDay << 13)); in RTC_SetDate()
712 RTC_DateStruct->WeekDay = RTC_WEEKDAY_MONDAY; in RTC_DateStructInit()
713 RTC_DateStruct->Date = 1; in RTC_DateStructInit()
714 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit()
715 RTC_DateStruct->Year = 0; in RTC_DateStructInit()
747 RTC_DateStruct->Year = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Year); in RTC_GetDate()
748 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate()
[all …]
/bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/
A Dn32g45x_rtc.c627 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate()
648 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate()
649 … | ((uint32_t)RTC_DateStruct->Date) | (((uint32_t)RTC_DateStruct->WeekDay) << 13)); in RTC_SetDate()
655 … | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Date)) | ((uint32_t)RTC_DateStruct->WeekDay << 13)); in RTC_SetDate()
707 RTC_DateStruct->WeekDay = RTC_WEEKDAY_MONDAY; in RTC_DateStructInit()
708 RTC_DateStruct->Date = 1; in RTC_DateStructInit()
709 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit()
710 RTC_DateStruct->Year = 0; in RTC_DateStructInit()
742 RTC_DateStruct->Year = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Year); in RTC_GetDate()
743 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate()
[all …]
/bsp/hk32/libraries/HK32F0xx_StdPeriph_Driver/src/
A Dhk32f0xx_rtc.c862 RTC_DateStruct->RTC_Month = (RTC_DateStruct->RTC_Month & (uint32_t)~(0x10)) + 0x0A; in RTC_SetDate()
875 tmpreg = RTC_Bcd2ToByte(RTC_DateStruct->RTC_Date); in RTC_SetDate()
944 void RTC_DateStructInit(RTC_DateTypeDef *RTC_DateStruct) in RTC_DateStructInit() argument
947 RTC_DateStruct->RTC_WeekDay = RTC_Weekday_Monday; in RTC_DateStructInit()
948 RTC_DateStruct->RTC_Date = 1; in RTC_DateStructInit()
949 RTC_DateStruct->RTC_Month = RTC_Month_January; in RTC_DateStructInit()
950 RTC_DateStruct->RTC_Year = 0; in RTC_DateStructInit()
983 RTC_DateStruct->RTC_Year = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Year); in RTC_GetDate()
984 RTC_DateStruct->RTC_Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Month); in RTC_GetDate()
985 RTC_DateStruct->RTC_Date = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Date); in RTC_GetDate()
[all …]
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/
A Dn32l40x_rtc.c676 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate()
697 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate()
698 … | ((uint32_t)RTC_DateStruct->Date) | (((uint32_t)RTC_DateStruct->WeekDay) << 13)); in RTC_SetDate()
704 … | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Date)) | ((uint32_t)RTC_DateStruct->WeekDay << 13)); in RTC_SetDate()
758 RTC_DateStruct->WeekDay = RTC_WEEKDAY_MONDAY; in RTC_DateStructInit()
759 RTC_DateStruct->Date = 1; in RTC_DateStructInit()
760 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit()
761 RTC_DateStruct->Year = 0; in RTC_DateStructInit()
793 RTC_DateStruct->Year = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Year); in RTC_GetDate()
794 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate()
[all …]
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/
A Dn32l43x_rtc.c623 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate()
643 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate()
644 … | ((uint32_t)RTC_DateStruct->Date) | (((uint32_t)RTC_DateStruct->WeekDay) << 13)); in RTC_SetDate()
650 … | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Date)) | ((uint32_t)RTC_DateStruct->WeekDay << 13)); in RTC_SetDate()
700 RTC_DateStruct->WeekDay = RTC_WEEKDAY_MONDAY; in RTC_DateStructInit()
701 RTC_DateStruct->Date = 1; in RTC_DateStructInit()
702 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit()
703 RTC_DateStruct->Year = 0; in RTC_DateStructInit()
731 RTC_DateStruct->Year = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Year); in RTC_GetDate()
732 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate()
[all …]
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/
A Dn32g43x_rtc.c664 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t) ~(0x10)) + 0x0A; in RTC_SetDate()
685 … tmpregister = ((((uint32_t)RTC_DateStruct->Year) << 16) | (((uint32_t)RTC_DateStruct->Month) << 8) in RTC_SetDate()
686 … | ((uint32_t)RTC_DateStruct->Date) | (((uint32_t)RTC_DateStruct->WeekDay) << 13)); in RTC_SetDate()
692 … | ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->Date)) | ((uint32_t)RTC_DateStruct->WeekDay << 13)); in RTC_SetDate()
746 RTC_DateStruct->WeekDay = RTC_WEEKDAY_MONDAY; in RTC_DateStructInit()
747 RTC_DateStruct->Date = 1; in RTC_DateStructInit()
748 RTC_DateStruct->Month = RTC_MONTH_JANUARY; in RTC_DateStructInit()
749 RTC_DateStruct->Year = 0; in RTC_DateStructInit()
781 RTC_DateStruct->Year = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Year); in RTC_GetDate()
782 RTC_DateStruct->Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->Month); in RTC_GetDate()
[all …]
/bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/inc/
A Dn32g4fr_rtc.h599 ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
600 void RTC_DateStructInit(RTC_DateType* RTC_DateStruct);
601 void RTC_GetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
/bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/inc/
A Dn32g45x_rtc.h599 ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
600 void RTC_DateStructInit(RTC_DateType* RTC_DateStruct);
601 void RTC_GetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
/bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/inc/
A Dn32wb452_rtc.h599 ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
600 void RTC_DateStructInit(RTC_DateType* RTC_DateStruct);
601 void RTC_GetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
/bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/inc/
A Dn32g45x_rtc.h599 ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
600 void RTC_DateStructInit(RTC_DateType* RTC_DateStruct);
601 void RTC_GetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
/bsp/ft32/libraries/FT32F0xx/FT32F0xx_Driver/Inc/
A Dft32f0xx_rtc.h680 ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct);
681 void RTC_DateStructInit(RTC_DateTypeDef* RTC_DateStruct);
682 void RTC_GetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct);
/bsp/hk32/libraries/HK32F0xx_StdPeriph_Driver/inc/
A Dhk32f0xx_rtc.h704 ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct);
705 void RTC_DateStructInit(RTC_DateTypeDef* RTC_DateStruct);
706 void RTC_GetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct);
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/inc/
A Dn32l43x_rtc.h713 ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
714 void RTC_DateStructInit(RTC_DateType* RTC_DateStruct);
715 void RTC_GetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/inc/
A Dn32l40x_rtc.h713 ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
714 void RTC_DateStructInit(RTC_DateType* RTC_DateStruct);
715 void RTC_GetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/inc/
A Dn32g43x_rtc.h713 ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
714 void RTC_DateStructInit(RTC_DateType* RTC_DateStruct);
715 void RTC_GetDate(uint32_t RTC_Format, RTC_DateType* RTC_DateStruct);
/bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Inc/
A Dstm32l1xx_ll_rtc.h3732 …tatus LL_RTC_DATE_Init(RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_DateTypeDef *RTC_DateStruct);
3733 void LL_RTC_DATE_StructInit(LL_RTC_DateTypeDef *RTC_DateStruct);

Completed in 69 milliseconds