This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: change of clock resolution


Andy Simpkins wrote:
> 
> Someone shout out and correct me if I am wrong but the values you have
> changed will have NO effect on the clock interval... if you have a timer
> ticking at 100Hz it will remain ticking at 100Hz after you change these
> values.  what will have changed is eCos' perception of time (not the real
> time).
> 
> If you want your clock ticks to be 10 times faster you need to change the
> timer settings found in hal_clock_initialize <platform>_misc.c (or the
> appropriate routine for your build)

No the PERIOD is what is used to program the clock and is passed to
hal_clock_initialize by the kernel.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]