Amin, QNX, like other OS, has its own system timer :
If You have an rtc, You must use it to update the system time, normally at system boot up.
You have to update the Qnx rtc utility including Your specific rtc chip support, or write
your own utility.
Anyway, basically You have to do:
1. Read out Your RTC time
2. Update the system time.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Here a short example:
struct timespec stime;
get_my_rtc_time(&stime); // read RTC date&time
clock_settime(CLOCK_REALTIME, &stime); // update system time
Of course, It should be better to provide an option to update RTC from system
time.
bye
mario
_______________________________________________
OSTech
http://community.qnx.com/sf/go/post115824
To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com