This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Time base
- From: Robin Farine <acnrf at dial dot eunet dot ch>
- To: Igor Trevisan <igor dot trevisan at bluewind dot it>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 15 Jan 2002 08:50:05 +0100
- Subject: Re: [ECOS] Time base
- References: <3C431D42.28601.1FF615C@localhost>
On Mon, 2002-01-14 at 18:02, Igor Trevisan wrote:
> Hi!
>
> I've a problem with time-base: I need to check a certain event every
> 5ms, so I need a time-base resolution that is less than the 5ms
> interval I have to deal with;
> I thought to create a high priority task that awakes every 5ms,
> does some simple operations to handle "its" event and then
> sleep for other 5ms.
> How can I do this?
If your platform has a hardware timer capable of generating interrupts
and with the required resolution, then you could hook an ISR to the
interrupt vector associated with that timer.
> I'm working with a CirrusLogic EP7209 ARM core processor.
> I built a short test program to check real-time clock ticks interval
> duration and it seems to be about 10ms, that's really longer
> then what I would need!
> Thanks 4 the attenction you would pay to my question!
> Igor.
Robin
>
>
>
> ------------------------------------------------------------------------------------------
> >>>>>> BlueWind Embedded Systems Design <<<<<<
> Via Steffani, 7/b - 31033 Castelfranco V.to (TV) Italy
> Tel: 0423-723431 Fax: 0423-744738 Mobile: 0335-7298820
>
> "Make things as simple as possible, but not simpler"
> (A. Einstein)
>
>
>