This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: HAL_CLOCK_XXXX routines and RTC time period
- From: "Robert Cragie" <rcc at jennic dot com>
- To: "Satish Kumar" <satish at bvt dot sc dot sanyo dot co dot jp>, <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 4 Sep 2003 15:54:12 +0100
- Subject: RE: [ECOS] HAL_CLOCK_XXXX routines and RTC time period
All the HAL clock functions are in (approximately)
<platform>/current/src/<platform>_misc.c, e.g. e7t/current/src/e7t_misc.c.
The HAL_CLOCK_XXXX generic macros in arch/current/include/hal_intr.h just
map to these.
However, the HAL clock is used for pre-emptive scheduler timings etc. and is
not a real-time clock in the 'battery-backed device which ticks every
second' sense, which I believe is what you are referring to. You will need
additional support routines for this sort of device.
Robert Cragie, Design Engineer
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
http://www.jennic.com Tel: +44 (0) 114 281 2655
_______________________________________________________________
> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Satish Kumar
> Sent: 04 September 2003 08:39
> To: ecos-discuss@sources.redhat.com
> Subject: [ECOS] HAL_CLOCK_XXXX routines and RTC time period
>
>
> Hi,
> Where are the HAL_CLOCK_XXXX routines defined for ARM variant
> processors in the eCos repository..it seems to me that in order to drive
> the real-time clock, i need to define/add in suitable HAL_CLOCK_XXX
> macros.
> my RTC runs on 32khz and is given 1 Hz clock input for one
> second interval..so what is the RTC time period ..? how to calculate
> this value..?
>
> saty
>
> --
> Satish Kumar <satish@bvt.sc.sanyo.co.jp>
>
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>
>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss