Home
last modified time | relevance | path

Searched refs:rtc (Results 1 – 2 of 2) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/examples/c++/
Dds1307.cxx31 void printTime(upm::DS1307 *rtc) in printTime() argument
34 rtc->month << "/" << rtc->dayOfMonth << "/" << rtc->year << " " in printTime()
35 << rtc->hours << ":" << rtc->minutes << ":" << rtc->seconds; in printTime()
37 if (rtc->amPmMode) in printTime()
38 cout << (rtc->pm) ? " PM " : " AM "; in printTime()
42 cout << "Clock is in " << ((rtc->amPmMode) ? "AM/PM mode" : "24hr mode") in printTime()
51 upm::DS1307 *rtc = new upm::DS1307(0); in main() local
55 if (!rtc->loadTime()) in main()
61 printTime(rtc); in main()
65 rtc->year = 50; in main()
[all …]
/hardware/bsp/intel/peripheral/libupm/examples/java/
DDS1307Sample.java37 static private void printTime(upm_ds1307.DS1307 rtc) { in printTime() argument
38 System.out.print("The time is: " + rtc.getMonth() + "/" + rtc.getDayOfMonth() + "/" in printTime()
39 + rtc.getYear() + " " + rtc.getHours() + ":" + rtc.getMinutes() + ":" in printTime()
40 + rtc.getSeconds()); in printTime()
42 if (rtc.getAmPmMode()) { in printTime()
43 if (rtc.getAmPmMode()) in printTime()
51 if (rtc.getAmPmMode()) in printTime()
61 upm_ds1307.DS1307 rtc = new upm_ds1307.DS1307(0); in main() local
65 if (!rtc.loadTime()) { in main()
70 printTime(rtc); in main()
[all …]