This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Timer: IRQ and FIQ mode
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Sicheri Marco <m dot sicheri at ctsgroup dot it>
- Cc: "eCos Discus.List" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 26 Oct 2004 15:20:33 +0200
- Subject: Re: [ECOS] Timer: IRQ and FIQ mode
- References: <006101c4bb58$6fae5a30$110110ac@Msicheri>
On Tue, Oct 26, 2004 at 02:36:37PM +0200, Sicheri Marco wrote:
> Hi All,
> I've the Samsung s3c44b0x.
>
> I dev. e simple code, two threads and one timer that generate a interrupt
> (timer2). (see the previous mail timer->interrupt for check my code).
> It work ok if i set the interrupt by IRQ, but if I set it by FIQ. The
> interupt work good, but the threads don't work.
> I had set (with lauterbach) a break in each thread, and the code run there
> only if the interrupt is the IRQ mode.
> Why? Could you help me?
> Where is my error?
Which target are you using for this processor? The closest i can see
is the smdk2410. Looking at smdk2410_misc.c:hal_IRQ_handler() it
appears FIQ is not supported.
If you want to use FIQ you will probably have to write a VSR and use
the function cyg_interrup_set_vsr();
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss