/Zephyr-latest/tests/unit/timeutil/ |
D | test_s32.c | 17 .tm_sec = 59, 29 .tm_sec = 0, 41 .tm_sec = 23, 58 .tm_sec = 51, 70 .tm_sec = 7, 84 .tm_sec = 59, 96 .tm_sec = 0, 108 .tm_sec = 0, 120 .tm_sec = 0, 132 .tm_sec = 0, [all …]
|
D | test_s64.c | 18 .tm_sec = 52, 30 .tm_sec = 51, 42 .tm_sec = 8, 54 .tm_sec = 59, 66 .tm_sec = 0, 79 .tm_sec = 59, 91 .tm_sec = 0, 103 .tm_sec = 0, 115 .tm_sec = 0, 127 .tm_sec = 0, [all …]
|
D | main.c | 38 zassert_equal(tm.tm_sec, tp->tm.tm_sec, in timeutil_check() 40 tp->civil, tm.tm_sec, tp->tm.tm_sec); in timeutil_check()
|
/Zephyr-latest/drivers/rtc/ |
D | rtc_utils.c | 17 if ((mask & RTC_ALARM_TIME_MASK_SECOND) && (timeptr->tm_sec < 0 || timeptr->tm_sec > 59)) { in rtc_utils_validate_rtc_time()
|
D | rtc_ds1307.c | 58 tm->tm_sec); in ds1307_set_time() 60 regs[0] = bin2bcd(tm->tm_sec) & SECONDS_BITS; in ds1307_set_time() 90 timeptr->tm_sec = bcd2bin(regs[0] & SECONDS_BITS); in ds1307_get_time() 113 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in ds1307_get_time()
|
D | rtc_mc146818.c | 148 if (timeptr->tm_sec < MIN_SEC || timeptr->tm_sec > MAX_SEC) { in rtc_mc146818_validate_time() 199 rtc_write(RTC_SEC, (uint8_t)timeptr->tm_sec); in rtc_mc146818_set_time() 248 timeptr->tm_sec = rtc_read(RTC_SEC); in rtc_mc146818_get_time() 271 (timeptr->tm_sec < MIN_SEC || timeptr->tm_sec > MAX_SEC)) { in rtc_mc146818_validate_alarm() 329 rtc_write(RTC_ALARM_SEC, timeptr->tm_sec); in rtc_mc146818_alarm_set_time() 375 timeptr->tm_sec = value; in rtc_mc146818_alarm_get_time()
|
D | rtc_ambiq.c | 59 atm->ui32Second = tm->tm_sec; in rtc_time_to_ambiq_time_set() 93 tm->tm_sec = atm->ui32Second; in ambiq_time_to_rtc_time_set() 127 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in ambiq_rtc_set_time() 166 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in ambiq_rtc_get_time() 217 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec, *mask); in ambiq_rtc_alarm_get_time() 268 timeptr->tm_sec, timeptr->tm_min, timeptr->tm_hour, timeptr->tm_mday, in ambiq_rtc_alarm_set_time()
|
D | rtc_emul.c | 84 datetime->tm_sec++; in rtc_emul_increment_tm() 87 if (datetime->tm_sec < 60) { in rtc_emul_increment_tm() 91 datetime->tm_sec = 0; in rtc_emul_increment_tm() 158 (alarm->datetime.tm_sec != data->datetime.tm_sec)) { in rtc_emul_test_alarms()
|
D | rtc_am1805.c | 136 tm->tm_sec); in am1805_set_time() 138 regs[0] = bin2bcd(tm->tm_sec) & SECONDS_BITS; in am1805_set_time() 188 timeptr->tm_sec = bcd2bin(regs[0] & SECONDS_BITS); in am1805_get_time() 199 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in am1805_get_time() 341 timeptr->tm_sec = bcd2bin(regs[0] & SECONDS_BITS); in am1805_alarm_get_time() 352 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec, *mask); in am1805_alarm_get_time() 408 regs[0] = bin2bcd(timeptr->tm_sec) & SECONDS_BITS; in am1805_alarm_set_time() 417 timeptr->tm_sec, timeptr->tm_min, timeptr->tm_hour, timeptr->tm_mday, in am1805_alarm_set_time()
|
D | rtc_nxp_irtc.c | 80 irtc_reg->SECONDS = RTC_SECONDS_SEC_CNT(timeptr->tm_sec); in nxp_irtc_set_time() 109 timeptr->tm_sec = RTC_NXP_GET_REG_FIELD(irtc_reg, SECONDS, SEC_CNT); in nxp_irtc_get_time() 164 irtc_reg->ALM_SECONDS = RTC_ALM_SECONDS_ALM_SEC(timeptr->tm_sec); in nxp_irtc_alarm_set_time() 227 timeptr->tm_sec = RTC_NXP_GET_REG_FIELD(irtc_reg, ALM_SECONDS, ALM_SEC); in nxp_irtc_alarm_get_time()
|
D | rtc_rpi_pico.c | 121 .sec = timeptr->tm_sec, in rtc_rpi_pico_set_time() 143 timeptr->tm_sec = dt.sec; in rtc_rpi_pico_get_time() 240 (alarm->tm_sec << RTC_IRQ_SETUP_1_SEC_LSB)); in rtc_rpi_pico_alarm_set_time()
|
D | rtc_shell.c | 110 tm_time->tm_sec = atoi(second); in consume_time() 215 rtctime.tm_sec, rtctime.tm_nsec / 1000000); in cmd_get()
|
/Zephyr-latest/samples/drivers/rtc/src/ |
D | main.c | 23 .tm_sec = 0, in set_date_time() 46 tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); in get_date_time()
|
/Zephyr-latest/tests/drivers/rtc/rtc_api/src/ |
D | test_alarm.c | 23 .tm_sec = 50, 37 .tm_sec = 0, 50 .tm_sec = 70, 132 zassert_equal(alarm_time_get.tm_sec, test_alarm_time_set.tm_sec, in ZTEST()
|
D | test_time.c | 40 zassert_true((datetime_get.tm_sec > -1) && (datetime_get.tm_sec < 60), in ZTEST()
|
D | test_y2k.c | 70 zassert_equal(rtm[Y2K].tm_sec, SECONDS_AFTER, "wrong second: %d", rtm[Y2K].tm_sec); in ZTEST()
|
D | test_alarm_callback.c | 27 .tm_sec = 50, 41 .tm_sec = 0,
|
/Zephyr-latest/tests/drivers/rtc/rtc_api_helpers/src/ |
D | test_rtc_time_to_tm.c | 13 zassert_equal(offsetof(struct rtc_time, tm_sec), offsetof(struct tm, tm_sec), in ZTEST()
|
/Zephyr-latest/subsys/shell/modules/ |
D | date_service.c | 35 t->tm_sec); in date_print() 127 t->tm_sec = strtol(time_str, &endptr, 10); in get_h_m_s() 133 if ((t->tm_sec < 0) || (t->tm_sec > 60)) { in get_h_m_s()
|
/Zephyr-latest/subsys/bluetooth/services/ |
D | cts.c | 47 date_time.tm_sec = ct_time->sec; /* seconds of minute */ in bt_cts_time_to_unix_ms() 51 date_time.tm_mday, date_time.tm_hour, date_time.tm_min, date_time.tm_sec); in bt_cts_time_to_unix_ms() 85 date_time.tm_mday, date_time.tm_hour, date_time.tm_min, date_time.tm_sec); in bt_cts_time_from_unix_ms() 96 ct_time->sec = date_time.tm_sec; /* seconds */ in bt_cts_time_from_unix_ms()
|
/Zephyr-latest/tests/drivers/rtc/shell/src/ |
D | main.c | 66 get_time_mock.rtc.tm_sec = 56; in configure_get_time_mock() 84 zassert_equal(sec, rtctime->tm_sec, "Second mismatch"); in assert_set_time() 138 get_time_mock.rtc.tm_sec); in ZTEST()
|
/Zephyr-latest/tests/drivers/rtc/rtc_utils/src/ |
D | test_rtc_utils.c | 15 .tm_sec = 70, in ZTEST()
|
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/ |
D | main.c | 26 (DWORD)cal->tm_sec >> 1; in get_fattime()
|
/Zephyr-latest/lib/libc/common/source/time/ |
D | asctime.c | 34 mon_str[tp->tm_mon], tp->tm_mday, tp->tm_hour, tp->tm_min, tp->tm_sec, in asctime_impl()
|
/Zephyr-latest/lib/libc/minimal/include/ |
D | time.h | 25 int tm_sec; member
|