2008-05-05 06:46:02 RTC
Servaes Joordens (NETHERLANDS)
Message: 55494
I enabled the bfin-rtc. Is this rtc automaicatlly coupled to the function: gettimeofday? If not, is there a possibility to do this?
thanks
Servaes
QuoteReplyEditDelete
2008-05-05 08:19:47 Re: RTC
Robin Getz (UNITED STATES)
Message: 55499
Servaes:
no - the RTC is not coupled to the kernel date functions (when the kernel boots, it reads the RTC to find the date, and that is it).
Can your describe what kind of functionality you are looking for?
-Robin
QuoteReplyEditDelete
2008-05-05 08:56:11 Re: RTC
Servaes Joordens (NETHERLANDS)
Message: 55500
Robin,
I have to give a time-stamp with a ms resolution to each image I capture with my hardware. The normal timing of the blackfin depends on the main clock (which is dependent on a crystal). This oscilator however is not very stable, especiallu with temperature changes. Our hardware will be used in a temperature range of -40 to +50 Degrees Celcius The crystal of the rtc is much more stable, so I want to use that for timing.
The best thing would be to use the rtc as the basic mechanism for all timing. Hence my question.
Servaes
QuoteReplyEditDelete
2008-05-05 09:18:31 Re: RTC
Mike Frysinger (UNITED STATES)
Message: 55506
if you want to read the RTC, then you need to open and read it manually
refer to linux-2.6.x/Documentation/rtc.txt for more information and code samples