This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: change of clock resolution
- To: Andy dot Simpkins at TardisMobile dot com
- Subject: Re: [ECOS] change of clock resolution
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 24 Apr 2001 17:48:05 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <NEBBKCPHAKKLBOKILBONOEOHCBAA.Andy.Simpkins@TardisMobile.com>
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