Kernel: Add RTC to get current time
This commit is contained in:
20
kernel/include/kernel/RTC.h
Normal file
20
kernel/include/kernel/RTC.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace RTC
|
||||
{
|
||||
|
||||
struct Time
|
||||
{
|
||||
uint8_t second;
|
||||
uint8_t minute;
|
||||
uint8_t hour;
|
||||
uint8_t day;
|
||||
uint8_t month;
|
||||
int year;
|
||||
};
|
||||
|
||||
Time GetCurrentTime();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user