This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: timer -> interrupt
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Sicheri Marco <m dot sicheri at ctsgroup dot it>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 22 Oct 2004 09:13:48 -0600
- Subject: Re: [ECOS] timer -> interrupt
- Organization: MLB Associates
- References: <002401c4b848$db27a0e0$110110ac@Msicheri>
On Fri, 2004-10-22 at 09:07, Sicheri Marco wrote:
> I All,
> I need to create a timer that cause an interrupt.
> Oh yes, the cyg_alarm_xxx work fine! But the resolution (tick) isn't
> sufficient... :o(
> My timer must count and each 100us (time between 100us and 800us) cause a
> interrupt, so that my interrupt routine can work.
> How can i do it?
> Normaly I programming the CPU registers with time and interupt vector. But
> in eCos: How do i do?
> Thanks,
This is platform/target specific, so you'll need to do a little
work yourself. What is your target?
There are some examples of this in the source tree. Try looking at:
hal/powerpc/mpc8xxx/current/tests/mpc8xxx_timer.c
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss