#include "rtc_run.h" static rtc_run_t RtcRun = { .year = RTC_INIT_YEAR, .month = RTC_INIT_MONTH, .day = RTC_INIT_DAY, .week = RTC_INIT_WEEK, .hour = RTC_INIT_HOUR, .minute = RTC_INIT_MIN, .second = RTC_INIT_SEC, .flag_1s = 0, .flag_1m = 0, .rsv = 0}; void get_rtc_run(rtc_run_t **rtc_run) { *rtc_run = &RtcRun; } void set_rtc_run(rtc_run_t *rtc_run) { RtcRun.year = rtc_run->year; RtcRun.month = rtc_run->month; RtcRun.day = rtc_run->day; RtcRun.hour = rtc_run->hour; RtcRun.minute = rtc_run->minute; RtcRun.second = rtc_run->second; RtcRun.week = rtc_run->week; RtcRun.flag_1s = 0; RtcRun.flag_1m = 0; }