大理水控初始版本
diff --git a/sys_hw/rtc.h b/sys_hw/rtc.h
new file mode 100644
index 0000000..c62efc3
--- /dev/null
+++ b/sys_hw/rtc.h
@@ -0,0 +1,27 @@
+#ifndef __rtc_h__
+#define __rtc_h__
+
+#include "stm32f10x.h"
+
+//ϵͳʱ¼ä½á¹¹
+typedef struct
+{
+ uint8_t year; //Äê
+ uint8_t month; //ÔÂ
+ uint8_t day; //ÈÕ
+ uint8_t week; //ÐÇÆÚ
+ uint8_t hour; //ʱ
+ uint8_t minute; //·Ö
+ uint8_t second; //Ãë
+}_SystemTime ;
+
+//extern _SystemTime SystemTime,SystemTimeBak;
+
+extern void rtc_init(void);
+extern uint8_t rtc_set_time(_SystemTime* t);
+extern uint8_t rtc_get_time(_SystemTime* t);
+//extern uint32_t rtc_mk_time(_SystemTime* t);
+//extern uint32_t rtc_time_diff(void* t1, void* t2);
+//extern uint32_t rtc_get_counter(void);
+
+#endif