| /bsp/stm32/libraries/HAL_Drivers/drivers/ |
| A D | drv_rtc.c | 62 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 D | drv_rtc.c | 32 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 D | stm32l1xx_ll_rtc.c | 381 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 D | ft32f0xx_rtc.c | 615 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 D | n32g45x_rtc.c | 630 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 D | n32g4fr_rtc.c | 630 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 D | n32wb452_rtc.c | 630 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 D | n32g45x_rtc.c | 627 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 D | hk32f0xx_rtc.c | 862 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 D | n32l40x_rtc.c | 676 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 D | n32l43x_rtc.c | 623 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 D | n32g43x_rtc.c | 664 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 D | n32g4fr_rtc.h | 599 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 D | n32g45x_rtc.h | 599 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 D | n32wb452_rtc.h | 599 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 D | n32g45x_rtc.h | 599 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 D | ft32f0xx_rtc.h | 680 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 D | hk32f0xx_rtc.h | 704 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 D | n32l43x_rtc.h | 713 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 D | n32l40x_rtc.h | 713 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 D | n32g43x_rtc.h | 713 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 D | stm32l1xx_ll_rtc.h | 3732 …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);
|