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]
Other format: [Raw text]

Re: Timer: IRQ and FIQ mode


Thanks Andrew,
but, The hal_IRQ_handler() work ok (I think... I HOPE!) because the FIQ
'arrive' and the interrupt routine is called.
The problem are the threads. They aren't running if my CPU timer is enable!
Yes... i call the cyg_interrupt_acknowledge() and the interrupt is cleared
and it is recalled after the 100us.
I don't undestand where is my error...
Please, do you have a idea?
Thanks!
Marco.

Ossequi,  (Best Regards/Obrigado)
Marco SICHERI
CTS electronics  - R&D Department
phone: +39 0125 235637, +39 0125 235630
e-mail: m.sicheri@ctsgroup.it
http://www.ctsgroup.it


----- Original Message ----- 
From: "Andrew Lunn" <andrew@lunn.ch>
To: "Sicheri Marco" <m.sicheri@ctsgroup.it>
Cc: "eCos Discus.List" <ecos-discuss@sources.redhat.com>
Sent: Tuesday, October 26, 2004 3:20 PM
Subject: Re: [ECOS] Timer: IRQ and FIQ mode


> 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


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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