···55/*****************************************************************************
66 * File name: src/arch/rc759/rtc.c *
77 * Created: 2012-07-06 by Hampa Hug <hampa@hampa.ch> *
88- * Copyright: (C) 2012-2021 Hampa Hug <hampa@hampa.ch> *
88+ * Copyright: (C) 2012-2025 Hampa Hug <hampa@hampa.ch> *
99 *****************************************************************************/
10101111/*****************************************************************************
···1515 * *
1616 * This program is distributed in the hope that it will be useful, but *
1717 * WITHOUT ANY WARRANTY, without even the implied warranty of *
1818- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
1818+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
1919 * Public License for more details. *
2020 *****************************************************************************/
2121···124124 rtc->wday[0] = tval->tm_wday;
125125 rtc->mday[0] = tval->tm_mday - 1;
126126 rtc->month[0] = tval->tm_mon;
127127+}
128128+129129+void rc759_rtc_set_time_zero (rc759_rtc_t *rtc)
130130+{
131131+ rc759_rtc_set_time (rtc, 0, 0, 0, 0);
132132+ rc759_rtc_set_date (rtc, 0, 0);
127133}
128134129135static
+3-2
src/arch/rc759/rtc.h
···55/*****************************************************************************
66 * File name: src/arch/rc759/rtc.h *
77 * Created: 2012-07-06 by Hampa Hug <hampa@hampa.ch> *
88- * Copyright: (C) 2012-2021 Hampa Hug <hampa@hampa.ch> *
88+ * Copyright: (C) 2012-2025 Hampa Hug <hampa@hampa.ch> *
99 *****************************************************************************/
10101111/*****************************************************************************
···1515 * *
1616 * This program is distributed in the hope that it will be useful, but *
1717 * WITHOUT ANY WARRANTY, without even the implied warranty of *
1818- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
1818+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
1919 * Public License for more details. *
2020 *****************************************************************************/
2121···6868void rc759_rtc_set_date (rc759_rtc_t *rtc, unsigned month, unsigned day);
69697070void rc759_rtc_set_time_now (rc759_rtc_t *rtc);
7171+void rc759_rtc_set_time_zero (rc759_rtc_t *rtc);
71727273unsigned char rc759_rtc_get_addr (rc759_rtc_t *rtc);
7374void rc759_rtc_set_addr (rc759_rtc_t *rtc, unsigned char val);