Home
last modified time | relevance | path

Searched refs:tm_sec (Results 1 – 25 of 48) sorted by relevance

12

/Zephyr-latest/tests/unit/timeutil/
Dtest_s32.c17 .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 …]
Dtest_s64.c18 .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 …]
Dmain.c38 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/
Drtc_utils.c17 if ((mask & RTC_ALARM_TIME_MASK_SECOND) && (timeptr->tm_sec < 0 || timeptr->tm_sec > 59)) { in rtc_utils_validate_rtc_time()
Drtc_ds1307.c58 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()
Drtc_mc146818.c148 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()
Drtc_ambiq.c59 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()
Drtc_emul.c84 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()
Drtc_am1805.c136 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()
Drtc_nxp_irtc.c80 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()
Drtc_rpi_pico.c121 .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()
Drtc_shell.c110 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/
Dmain.c23 .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/
Dtest_alarm.c23 .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()
Dtest_time.c40 zassert_true((datetime_get.tm_sec > -1) && (datetime_get.tm_sec < 60), in ZTEST()
Dtest_y2k.c70 zassert_equal(rtm[Y2K].tm_sec, SECONDS_AFTER, "wrong second: %d", rtm[Y2K].tm_sec); in ZTEST()
Dtest_alarm_callback.c27 .tm_sec = 50,
41 .tm_sec = 0,
/Zephyr-latest/tests/drivers/rtc/rtc_api_helpers/src/
Dtest_rtc_time_to_tm.c13 zassert_equal(offsetof(struct rtc_time, tm_sec), offsetof(struct tm, tm_sec), in ZTEST()
/Zephyr-latest/subsys/shell/modules/
Ddate_service.c35 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/
Dcts.c47 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/
Dmain.c66 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/
Dtest_rtc_utils.c15 .tm_sec = 70, in ZTEST()
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dmain.c26 (DWORD)cal->tm_sec >> 1; in get_fattime()
/Zephyr-latest/lib/libc/common/source/time/
Dasctime.c34 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/
Dtime.h25 int tm_sec; member

12