[ECOS] eb40a Interrupt, TC
Nick Garnett
nickg@ecoscentric.com
Thu Oct 23 14:34:00 GMT 2003
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
More information about the Ecos-discuss
mailing list