basic process support and some syscalls
[lunaix-os.git] / lunaix-os / includes / hal / rtc.h
index 0092171230650eb3c4527082ea95bc2a112750eb..0742f0ce8f0abd47b3e3b25a88fa03be4ab12875 100644 (file)
 #define RTC_FREQUENCY_1024HZ    0b110
 #define RTC_DIVIDER_33KHZ       (0b010 << 4)
 
 #define RTC_FREQUENCY_1024HZ    0b110
 #define RTC_DIVIDER_33KHZ       (0b010 << 4)
 
-typedef struct
-{
-    uint32_t year;      // use int32 as we need to store the 4-digit year
-    uint8_t month;
-    uint8_t day;
-    uint8_t weekday;
-    uint8_t hour;
-    uint8_t minute;
-    uint8_t second;
-} rtc_datetime;
-
 void
 rtc_init();
 
 void
 rtc_init();
 
@@ -52,9 +41,6 @@ rtc_read_reg(uint8_t reg_selector);
 void
 rtc_write_reg(uint8_t reg_selector, uint8_t val);
 
 void
 rtc_write_reg(uint8_t reg_selector, uint8_t val);
 
-void 
-rtc_get_datetime(rtc_datetime* datetime);
-
 void
 rtc_enable_timer();
 
 void
 rtc_enable_timer();