2022-04-08 20:04:12 +08:00

21 lines
378 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <common/glib.h>
struct rtc_time_t
{
int second;
int minute;
int hour;
int day;
int month;
int year;
}rtc_now; // rtc_now为墙上时钟由HPET定时器0维护
/**
* @brief 从主板cmos中获取时间
*
* @param t time结构体
* @return int 成功则为0
*/
int rtc_get_cmos_time(struct rtc_time_t*t);
void rtc_init();