| /bsp/samd21/sam_d2x_asflib/common/services/calendar/ |
| A D | calendar.c | 227 if ((date->second >= 60) || (date->minute >= 60) || (date->hour >= 24)) { in calendar_is_date_valid() 270 date_out->second = day_clock % SECS_PER_MINUTE; in calendar_timestamp_to_date() 340 (date->minute * SECS_PER_MINUTE) + date->second; in calendar_date_to_timestamp() 463 if (date_end->second - date_start->second < 0) { in calendar_time_between_dates() 464 date_end->second += 60; in calendar_time_between_dates() 470 date_out->second = date_end->second - date_start->second; in calendar_time_between_dates() 488 if (++date->second == 60) { in calendar_add_second_to_date() 489 date->second = 0; in calendar_add_second_to_date()
|
| A D | calendar.h | 74 uint8_t second; //!< 0-59 member
|
| /bsp/nxp/mcx/mcxa/Libraries/drivers/ |
| A D | drv_rtc.c | 34 tm_new.tm_sec = datetime.second; in get_rtc_timestamp() 44 datetime.hour, datetime.minute, datetime.second); in get_rtc_timestamp() 68 datetime.second = time_tm->tm_sec; in set_rtc_time_stamp() 79 datetime.hour, datetime.minute, datetime.second); in set_rtc_time_stamp() 154 wkalarm->tm_sec = datetime.second; in _rtc_get_alarm() 166 datetime.hour, datetime.minute, datetime.second, in _rtc_get_alarm() 185 datetime.second = wkalarm->tm_sec; in _rtc_set_alarm() 205 datetime.hour, datetime.minute, datetime.second); in _rtc_set_alarm()
|
| /bsp/loongson/ls1cdev/drivers/ |
| A D | drv_wdt.c | 91 rt_uint32_t second = 0; in wdt_get_timeleft() local 94 second = cnt/clk_get_apb_rate(); in wdt_get_timeleft() 96 return second; in wdt_get_timeleft() 99 static rt_err_t wdt_set_timeout(rt_uint32_t second) in wdt_set_timeout() argument 104 index = second * clk_get_apb_rate(); in wdt_set_timeout()
|
| /bsp/essemi/es32f369x/libraries/ES32F36xx_ALD_StdPeriph_Driver/Source/ |
| A D | ald_rtc.c | 185 if (t_last->second != time->second) in rtc_consistency_check() 335 assert_param(IS_RTC_SECOND(time->second)); in ald_rtc_set_time() 339 tmp = (dec_to_bcd(time->second)) | in ald_rtc_set_time() 427 time->second = bcd_to_dec(tmp & 0x7F); in ald_rtc_get_time() 432 time->second = tmp & 0x7F; in ald_rtc_get_time() 537 tmp = (dec_to_bcd(alarm->time.second)) | in ald_rtc_set_alarm() 558 tmp = alarm->time.second | in ald_rtc_set_alarm() 658 alarm->time.second = bcd_to_dec(tmp & 0x7F); in ald_rtc_get_alarm() 663 alarm->time.second = tmp & 0x7F; in ald_rtc_get_alarm() 755 ts_time->second = bcd_to_dec(tmp0 & 0x7F); in ald_rtc_get_time_stamp() [all …]
|
| /bsp/essemi/es32f0654/libraries/ES32F065x_ALD_StdPeriph_Driver/Source/ |
| A D | ald_rtc.c | 185 if (t_last->second != time->second) in rtc_consistency_check() 335 assert_param(IS_RTC_SECOND(time->second)); in ald_rtc_set_time() 339 tmp = (dec_to_bcd(time->second)) | in ald_rtc_set_time() 427 time->second = bcd_to_dec(tmp & 0x7F); in ald_rtc_get_time() 432 time->second = tmp & 0x7F; in ald_rtc_get_time() 537 tmp = (dec_to_bcd(alarm->time.second)) | in ald_rtc_set_alarm() 558 tmp = alarm->time.second | in ald_rtc_set_alarm() 658 alarm->time.second = bcd_to_dec(tmp & 0x7F); in ald_rtc_get_alarm() 663 alarm->time.second = tmp & 0x7F; in ald_rtc_get_alarm() 755 ts_time->second = bcd_to_dec(tmp0 & 0x7F); in ald_rtc_get_time_stamp() [all …]
|
| /bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/ |
| A D | fm33lc0xx_fl_rtc.c | 113 FL_RTC_WriteSecond(RTCx, initStruct->second); in FL_RTC_ConfigTime() 142 initStruct->second = FL_RTC_ReadSecond(RTCx); in FL_RTC_GetTime() 172 initStruct->second = 0x00; in FL_RTC_StructInit()
|
| /bsp/nrf5x/libraries/drivers/ |
| A D | drv_rtc.c | 25 #define RTC_TIME_INIT(year, month, day, hour, minute, second) \ argument 26 …r - 1900, .tm_mon = month - 1, .tm_mday = day, .tm_hour = hour, .tm_min = minute, .tm_sec = second}
|
| /bsp/nxp/mcx/mcxn/Libraries/drivers/ |
| A D | drv_rtc.c | 44 tm_new.tm_sec = rtc_date.second; in mcx_rtc_get_time() 64 rtc_date.second = now.tm_sec ; in mcx_rtc_set_time()
|
| /bsp/nxp/lpc/lpc55sxx/Libraries/drivers/ |
| A D | drv_rtc.c | 29 tm_new.tm_sec = rtcDate.second; in lpc_get_timestamp() 49 rtcDate.second = now.tm_sec ; in lpc_set_timestamp()
|
| /bsp/frdm-k64f/device/MK64F12/ |
| A D | fsl_rtc.c | 86 …->month < 1U) || (datetime->hour >= 24U) || (datetime->minute >= 60U) || (datetime->second >= 60U)) in RTC_CheckDatetimeFormat() 132 (datetime->minute * SECONDS_IN_A_MINUTE) + datetime->second; in RTC_ConvertDatetimeToSeconds() 164 datetime->second = secondsRemaining % SECONDS_IN_A_MINUTE; in RTC_ConvertSecondsToDatetime()
|
| /bsp/nxp/imx/imx6ull-smart/drivers/ |
| A D | drv_rtc.c | 33 tm_new.tm_sec = rtcDate.second; in _get_rtc_timestamp() 51 rtcDate.second = p_tm->tm_sec; in _set_rtc_time_stamp()
|
| /bsp/essemi/es32f369x/drivers/ |
| A D | drv_rtc.c | 66 time_temp.tm_sec = time.second; in es32f0_rtc_control() 79 time.second = time_temp.tm_sec; in es32f0_rtc_control()
|
| /bsp/essemi/es32f0654/drivers/ |
| A D | drv_rtc.c | 67 time_temp.tm_sec = time.second; in es32f0_rtc_control() 80 time.second = time_temp.tm_sec; in es32f0_rtc_control()
|
| /bsp/nxp/imx/imxrt/libraries/drivers/ |
| A D | drv_rtc.c | 39 tm_new.tm_sec = rtcDate.second; in imxrt_hp_get_timestamp() 57 srtcDate.second = now.tm_sec; in imxrt_hp_set_timestamp()
|
| /bsp/bouffalo_lab/bl60x/ |
| A D | flash_prog_cfg.ini | 4 # skip mode set first para is skip addr, second para is skip len, multi-segment region with ; separ…
|
| /bsp/bouffalo_lab/bl61x/ |
| A D | flash_prog_cfg.ini | 4 # skip mode set first para is skip addr, second para is skip len, multi-segment region with ; separ…
|
| /bsp/bouffalo_lab/bl808/m0/ |
| A D | flash_prog_cfg.ini | 4 # skip mode set first para is skip addr, second para is skip len, multi-segment region with ; separ…
|
| /bsp/bouffalo_lab/bl70x/ |
| A D | flash_prog_cfg.ini | 4 # skip mode set first para is skip addr, second para is skip len, multi-segment region with ; separ…
|
| /bsp/bouffalo_lab/bl808/d0/ |
| A D | flash_prog_cfg.ini | 4 # skip mode set first para is skip addr, second para is skip len, multi-segment region with ; separ…
|
| /bsp/bouffalo_lab/bl808/lp/ |
| A D | flash_prog_cfg.ini | 4 # skip mode set first para is skip addr, second para is skip len, multi-segment region with ; separ…
|
| /bsp/bouffalo_lab/bl808/ |
| A D | flash_prog_cfg.ini | 4 # skip mode set first para is skip addr, second para is skip len, multi-segment region with ; separ…
|
| /bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/ |
| A D | fm33lc0xx_fl_rtc.h | 72 uint32_t second; member 990 __STATIC_INLINE void FL_RTC_WriteSecond(RTC_Type *RTCx, uint32_t second) in FL_RTC_WriteSecond() argument 992 MODIFY_REG(RTCx->BCDSEC, (0x7fU << 0U), (second << 0U)); in FL_RTC_WriteSecond() 1197 __STATIC_INLINE void FL_RTC_WriteSecondAlarm(RTC_Type *RTCx, uint32_t second) in FL_RTC_WriteSecondAlarm() argument 1199 MODIFY_REG(RTCx->ALARM, (0x7fU << 0U), (second << 0U)); in FL_RTC_WriteSecondAlarm()
|
| /bsp/rv32m1_vega/rv32m1_sdk_riscv/devices/RV32M1/drivers/ |
| A D | fsl_rtc.c | 64 …->month < 1U) || (datetime->hour >= 24U) || (datetime->minute >= 60U) || (datetime->second >= 60U)) in RTC_CheckDatetimeFormat() 110 (datetime->minute * SECONDS_IN_A_MINUTE) + datetime->second; in RTC_ConvertDatetimeToSeconds() 142 datetime->second = secondsRemaining % SECONDS_IN_A_MINUTE; in RTC_ConvertSecondsToDatetime()
|
| /bsp/hifive1/freedom-e-sdk/bsp/env/freedom-e300-hifive1/ |
| A D | openocd.cfg | 10 #Reset Stretcher logic on FE310 is ~1 second long
|