BCD and RTC utility
bcdutil.h
- Committer:
- ykuroda
- Date:
- 2012-10-06
- Revision:
- 0:dc2c526097d2
File content as of revision 0:dc2c526097d2:
// /// // // // // // // #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