- To: ecos-discuss@xxxxxxxxxxxxxxxxxxx
- Subject: Re: Re: Adjustable wallclock (get/settimeofday, adjtimex)?
- From: Stanislav Meduna <stano@xxxxxxxxxx>
- Date: Mon, 27 Jun 2011 16:48:26 +0200
- In-reply-to: <iua3cq$ggp$1@dough.gmane.org>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
On 27.06.2011 16:16, Grant Edwards wrote:
> When I needed to adjust the time to keep it in sync with a real-time
> clock, I did it at a lower level by adding hooks into the target's HAL
> code that allowed me to gradually slew the cyg_current_time() value by
> adjusting the length of a system tick by small amounts.
Could you elaborate a bit? Did you change the hardware's interrupt
frequency? This would be the best solution, but it depends on how
easy the frequency can be adjusted without disturbing the current
running interval, if at all (e.g. on some hardware the counter
reload value can't be accessed atomically and hitting the wrong
values at wrong time could produce unacceptable clock interrupt
jitter).
Regards
--
Stano
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
[Linux Embedded]
[U-Boot V2]
[Linux Kernel]
[Linux MIPS]
[Linux ARM]
[Linux for the Blind]
[Linux Resources]
[Photo]
[Yosemite]
[ISDN Cause Codes]
[ECOS Home]
[Site Home]