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: eb40a Interrupt, TC


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


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