This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Real time clock binding
- To: "Doris, Thomas" <thomas dot doris at intel dot com>
- Subject: Re: [ECOS] Real time clock binding
- From: Robin Farine <acnrf at dial dot eunet dot ch>
- Date: 05 Oct 2001 17:07:22 +0200
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- References: <309E33C16F75D511ADB30002A50A61EA42069D@irsmsx101.ir.intel.com>
"Doris, Thomas" <thomas.doris@intel.com> writes:
> I'm working on a new HAL based on the iq80310. I've coded up my
> hal_clock_reset, hal_clock_intialize and hal_clock_read functions in my
> <platform>_misc.c file, in addition to my interrupt mask/unmask functions.
> I've defined CYGNUM_HAL_INTERRUPT_RTC to the appropriate value, and
> according to what I can gather from the documentation and the archives, this
> is all I should need to do in order to force the OS to bind into my timer
> interrupt and use it to control timeslicing in the scheduler.
I think you also need DSR support (the CYGIMP_KERNEL_INTERRUPTS_DSRS component)
since the kernel real time clock depends on it.
>
> A previous post points to kernel/VERSION/src/common/clock.cxx as the place
> where this occurs. However, all of the code concerned is wrapped in
>
> #ifdef CYGVAR_KERNEL_COUNTERS_CLOCK
>
The CYGVAR_KERNEL_COUNTERS_CLOCK option requires
CYGIMP_KERNEL_INTERRUPTS_DSRS, the iq80310's HAL cdl and sources should guide
you how to provide this component.
[...]
Robin