Synching clock manager
Ian Caddy
ianc at microsol.iinet.net.au
Tue Dec 17 09:38:04 UTC 2002
Hi Arun,
Unfortunately I am not able to help you there, we use RTEMS in an
embedded environment and not on the PC, so I am not familiar with the PC.
In our system, a timer is used to support the RTEMS clock (and tick) and
we have a seperate hardware RTC which we read on startup and perform the
set time.
I do not know of any functions that would help you on a PC, hopefully
someone else will.
regards,
Ian Caddy
Arun Govind wrote:
> thank you for your response.
> I wonder what should you have meant by a *separate* hardware clock. I'm using a my PC itself as the target and all I wanted to synch the time with the BIOS time. I used the rtems_clock_set using a hard coded time and that worked. But how can I get the current time from BIOS? Sorry, I don't know much about BIOS routines.. Is there any prebuilt function that will do that?
> Arun
> --
>
> On Tue, 17 Dec 2002 17:01:53
> Ian Caddy wrote:
>
>>Hi Arun,
>>
>>Yes, if you have a seperate hardware clock, you will need to get its
>>time on startup and then perform:
>>
>> /* Now we set our system time */
>> status = rtems_clock_set(&tRTEMSTime);
>>
>>This can be performed in your init task when your system starts up.
>>
>>regards,
>>
>>Ian Caddy
>>
>>
>>Arun Govind wrote:
>>
>>>Do I need to call some special routines to synch the rtems clock manager with the hardware clock? I've #defined CONFIGURE_TEST_NEEDS_CLOCK_DRIVER in my test. But any calls to get the current time returns me some time around midnight, January 1st 1988.
>>>thanks for any help
>>>Arun
>>>
>>>
>>>_____________________________________________________________
>>>Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
>>>http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
>>>
>>
>>
>
>
> _____________________________________________________________
> Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
> http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
>
More information about the users
mailing list