mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
🆕 rtc时钟驱动程序
This commit is contained in:
20
kernel/driver/timers/rtc/rtc.h
Normal file
20
kernel/driver/timers/rtc/rtc.h
Normal file
@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include <common/glib.h>
|
||||
struct time
|
||||
{
|
||||
int second;
|
||||
int minute;
|
||||
int hour;
|
||||
int day;
|
||||
int month;
|
||||
int year;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief 从主板cmos中获取时间
|
||||
*
|
||||
* @param t time结构体
|
||||
* @return int 成功则为0
|
||||
*/
|
||||
int rtc_get_cmos_time(struct time*t);
|
||||
int get_cmos_time(struct time *time);
|
Reference in New Issue
Block a user