Home |
RTTarget-32 Programming Manual Function RTCMOSSetRTC System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTCMOSSetRTCRTCMOSSetRTC retrieves the current date and time of day from the Win32 Date and Time Management and updates the CMOS real-time clock accordingly: void RTCMOSSetRTC(void); If any time zone and/or daylight saving (summer) time information has been supplied through SetTimeZoneInformation, this function converts the current system time to local standard time and writes the result to the CMOS real-time clock using function RTCMOSWriteTime. If RTTarget-32 flag RT_CMOS_RTC_SYNCH is set when this function is called, RTCMOSSetRTC will synchronize the CMOS real-time clock with the next seconds increment of the system time. The effect is that the CMOS real-time clock is set more accurately, but RTCMOSSetRTC can take up to 1 second to execute. It is not recommended to use this function frequently. RTCMOSSetRTC can take up to 1 second to complete. It must temporarily stop the real-time clock. This function requires an MC146818A Real-Time Clock on the target.
|