This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: eb40a Interrupt, TC
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Carlos Perilla <transfers at phaber dot com>
- Cc: ecos <ecos-discuss at sources dot redhat dot com>
- Date: 23 Oct 2003 15:25:31 +0100
- Subject: Re: [ECOS] eb40a Interrupt, TC
- References: <3F9575D1.6030509@phaber.com>
Carlos Perilla <transfers@phaber.com> writes:
> Well , finally I got two timers running, with the conf I want, Now I
> need to capture the interrupts that my configuration is generating, as
> long as the TC_SR says the events that I have programed had passed but
> not attended.
>
>
> Im using two other threads to capture and transmit the data I get from
> here, still the Interrupt Isn't captured, and the program keeps
> waiting for the semaphore signal.
>
You should not be calling cyg_interrupt_enable(). This is done
implicitly when the scheduler is started. Calling it before then can
allow interrupts to be delivered to code that is not yet ready.
The code you have posted seems fine as far as it goes. Check that you
have used the right vector number.
Your code does not show where you are setting up the timer device. I
suspect that this is where the problems are to be found. Have you, for
example, set the correct interrupt enable bit for the timer mode you
are using.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss