Searched refs:_control_rtc (Results 1 – 1 of 1) sorted by relevance
/components/libc/compilers/common/ |
A D | ctime.c | 93 static rt_err_t _control_rtc(int cmd, void *arg) in _control_rtc() function 345 if (_control_rtc(RT_DEVICE_CTRL_RTC_GET_TIME, &_t) != RT_EOK) in time() 490 if (_control_rtc(RT_DEVICE_CTRL_RTC_GET_TIMEVAL, tv) == RT_EOK) in gettimeofday() 496 if (_control_rtc(RT_DEVICE_CTRL_RTC_GET_TIME, (void *)&tv->tv_sec) == RT_EOK) in gettimeofday() 519 if (_control_rtc(RT_DEVICE_CTRL_RTC_SET_TIMEVAL, (void *)tv) == RT_EOK) in settimeofday() 525 if (_control_rtc(RT_DEVICE_CTRL_RTC_SET_TIME, (void *)&tv->tv_sec) == RT_EOK) in settimeofday() 608 return _control_rtc(RT_DEVICE_CTRL_RTC_GET_TIMERES, res); in clock_getres() 641 return _control_rtc(RT_DEVICE_CTRL_RTC_GET_TIMESPEC, tp); in clock_gettime() 685 err = _control_rtc(RT_DEVICE_CTRL_RTC_GET_TIMESPEC, &ts); in clock_nanosleep() 738 return _control_rtc(RT_DEVICE_CTRL_RTC_SET_TIMESPEC, (void *)tp); in clock_settime() [all …]
|
Completed in 9 milliseconds