Remove rarely used rt_time_t

next_delay should be rt_tick_t

Use time_t for RT_DEVICE_CTRL_RTC_GET_TIME
This commit is contained in:
Yonggang Luo
2025-09-27 08:20:12 +08:00
committed by R b b666
parent d58958e397
commit 62bc4ba774
3 changed files with 3 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ static rt_err_t rtc_control(rt_device_t dev, int cmd, void *args)
case RT_DEVICE_CTRL_RTC_GET_TIME:
/* read device */
rt_hw_rtc_get(&tmp);
*((rt_time_t *)args) = timegm(&tmp);
*time = timegm(&tmp);
break;
case RT_DEVICE_CTRL_RTC_SET_TIME: