BCD and RTC utility

Revision:
0:dc2c526097d2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bcdutil.h	Sat Oct 06 16:38:23 2012 +0000
@@ -0,0 +1,20 @@
+//
+///
+//
+//
+//
+//
+//
+//
+#ifndef _BCDUTIL_H
+#define _BCDUTIL_H
+
+
+
+unsigned int bin2bcd(unsigned int n);
+unsigned char bcd2bin(unsigned char bcd);
+char* tm2rtc(struct tm* _t);        // tm -> rtc(BCD)
+struct tm* rtc2tm(char* _bcd);      // rtc(BCD) -> tm
+
+
+#endif