Searched refs:rtctime (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/drivers/rtc/ |
D | rtc_shell.c | 161 struct rtc_time rtctime = {0}; in cmd_set() local 162 struct tm *tm_time = rtc_time_to_tm(&rtctime); in cmd_set() 164 (void)rtc_get_time(dev, &rtctime); in cmd_set() 183 int res = rtc_set_time(dev, &rtctime); in cmd_set() 201 struct rtc_time rtctime; in cmd_get() local 203 int res = rtc_get_time(dev, &rtctime); in cmd_get() 213 shell_print(sh, "%04d-%02d-%02dT%02d:%02d:%02d.%03d", rtctime.tm_year + 1900, in cmd_get() 214 rtctime.tm_mon + 1, rtctime.tm_mday, rtctime.tm_hour, rtctime.tm_min, in cmd_get() 215 rtctime.tm_sec, rtctime.tm_nsec / 1000000); in cmd_get()
|
/Zephyr-latest/tests/drivers/rtc/shell/src/ |
D | main.c | 73 const struct rtc_time *rtctime; in assert_set_time() local 77 rtctime = &set_time_mock.rtc; in assert_set_time() 79 zassert_equal(year, rtctime->tm_year + 1900, "Year mismatch"); in assert_set_time() 80 zassert_equal(mon, rtctime->tm_mon + 1, "Month mismatch"); in assert_set_time() 81 zassert_equal(mday, rtctime->tm_mday, "Day mismatch"); in assert_set_time() 82 zassert_equal(hour, rtctime->tm_hour, "Hour mismatch"); in assert_set_time() 83 zassert_equal(min, rtctime->tm_min, "Minute mismatch"); in assert_set_time() 84 zassert_equal(sec, rtctime->tm_sec, "Second mismatch"); in assert_set_time()
|