FreeCalypso > hg > freecalypso-sw
comparison target-utils/pirexplore/rtc.c @ 73:c54c6ad1c66f
pirexplore: added rtccomp command to read RTC compensation registers
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Fri, 26 Jul 2013 21:12:03 +0000 |
parents | 92c1ed6b4b67 |
children |
comparison
equal
deleted
inserted
replaced
72:92c1ed6b4b67 | 73:c54c6ad1c66f |
---|---|
48 } | 48 } |
49 printf("\nDATE %02X-%02X-%02X DOW %02X TIME %02X:%02X:%02X\n", | 49 printf("\nDATE %02X-%02X-%02X DOW %02X TIME %02X:%02X:%02X\n", |
50 time2.year, time2.month, time2.day_of_month, time2.day_of_week, | 50 time2.year, time2.month, time2.day_of_month, time2.day_of_week, |
51 time2.hours, time2.minutes, time2.seconds); | 51 time2.hours, time2.minutes, time2.seconds); |
52 } | 52 } |
53 | |
54 void | |
55 cmd_rtccomp() | |
56 { | |
57 printf("%04X\n", (RTC_REGS.rtc_comp_msb_reg << 8) | | |
58 RTC_REGS.rtc_comp_lsb_reg); | |
59 } |