This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Re: Vs: Timer interrupts and scheduler
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "Stephen Mose Aaskov" <sma at 2m dot dk>
- Cc: <ecos-devel at sources dot redhat dot com>
- Date: 23 Sep 2002 15:17:21 +0100
- Subject: Re: Vs: Timer interrupts and scheduler
- References: <004c01c262ea$950b24c0$016d100a@2m.dk>
"Stephen Mose Aaskov" <sma@2m.dk> writes:
> I´m working with a partly port of Ecos (1.3, CVS updated) to a MIPS
> R3000 platform. I´m having some trouble figuring out how and when
> to call system timer functions and scheduler from within a timer
> interrupt ISR. Currently I have no timer ISR, but I do have timer
> interrupts coming in all the time.
>
> Which actions should a timer interrupt ISR (VSR? DSR??) perform?
>
> Hope somone can clearify how these thing are interconnected in ecos.
>
You do not need to write your own timer ISR, the default one in the
kernel does all the necessary work.
What you do have to write are the HAL_CLOCK_* macros for controlling
the timer, and set the value of CYGNUM_HAL_INTERRUPT_RTC to the
timer's interrupt vector.
See the documentation on the HAL for details.
--
Nick Garnett - eCos Kernel Architect
http://www.eCosCentric.com/