#ifndef _RTC_H_ #define _RTC_H_ #include "gd32h7xx.h" #include "publicdata/type.h" /* 对外接口函数声明 */ void v_rtc_init(void); /* app_rtc 兼容接口(对业务层使用 Comm_Time) */ void GetCurrentTime(Comm_Time *curTime); void v_rtc_set_time(Comm_Time *curTime); unsigned int xDate2Seconds(Comm_Time *time); void xSeconds2Date(unsigned long seconds, Comm_Time *time); U8_T u8_ocpp_timestamp_to_tm(Comm_Time *ctTime, const char *time_str, U8_T time_type); void v_adjust_time_with_timezone(Comm_Time *ctTime, int hour_offset, int min_offset); void test_rtc(void); #endif