dt 106 bsp/drv/dev/rtc/rtc.c rtc_ymdhms_to_secs(struct clock_ymdhms *dt) dt 111 bsp/drv/dev/rtc/rtc.c year = dt->year; dt 120 bsp/drv/dev/rtc/rtc.c if (leapyear(year) && dt->mon > FEBRUARY) dt 124 bsp/drv/dev/rtc/rtc.c for (i = 1; i < dt->mon; i++) dt 126 bsp/drv/dev/rtc/rtc.c days += (dt->day - 1); dt 129 bsp/drv/dev/rtc/rtc.c secs = (time_t)(((days * 24 + dt->hour) * 60 + dt->min) dt 130 bsp/drv/dev/rtc/rtc.c * 60 + dt->sec); dt 140 bsp/drv/dev/rtc/rtc.c rtc_secs_to_ymdhms(time_t secs, struct clock_ymdhms *dt) dt 152 bsp/drv/dev/rtc/rtc.c dt->dow = (days + 4) % 7; dt 157 bsp/drv/dev/rtc/rtc.c dt->year = (u_short)i; dt 164 bsp/drv/dev/rtc/rtc.c dt->mon = i; dt 167 bsp/drv/dev/rtc/rtc.c dt->day = days + 1; dt 170 bsp/drv/dev/rtc/rtc.c dt->hour = rsec / 3600; dt 172 bsp/drv/dev/rtc/rtc.c dt->min = rsec / 60; dt 174 bsp/drv/dev/rtc/rtc.c dt->sec = rsec; dt 75 bsp/drv/include/rtc.h time_t rtc_ymdhms_to_secs(struct clock_ymdhms *dt); dt 76 bsp/drv/include/rtc.h void rtc_secs_to_ymdhms(time_t secs, struct clock_ymdhms *dt);