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: Real time clock binding


"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


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