interrupt handling

bridged with qdn.public.neutrino
Post Reply
Andreas Lurz

interrupt handling

Post by Andreas Lurz » Wed Sep 24, 2003 9:07 am

Hi,
whats wrong in this part?

SIGEV_INTR_INIT( &event );


iid = InterruptAttachEvent( irq, &event, _NTO_INTR_FLAGS_TRK_MSK );

for (;;)

{

printf("vor InterruptWait!\n");

InterruptWait (0,NULL);

........



Please help me!



Thanks

Andreas

Dmitri Poustovalov

Re: interrupt handling

Post by Dmitri Poustovalov » Wed Sep 24, 2003 9:07 am

At least you are missing InterruptUnmask(). Maybe that line just did not
make it when you did copy&paste. Anyway it is worth of checking.

Secondary, information you provided is not symply enough to make a
guess. It would be nice to know:
- How many "vor InterruptWait!\n" messages can you see?
- What's nature of the device?
- What's CPU architecture you have?
- What kind of bus the device is attached to?
- What's nature of interrupt, level or edge?
- Did you ever tried to attach a scope to the interrupt line? If so,
have you seen it triggered?

-dip

Andreas Lurz wrote:
Hi,
whats wrong in this part?

SIGEV_INTR_INIT( &event );


iid = InterruptAttachEvent( irq, &event, _NTO_INTR_FLAGS_TRK_MSK );

for (;;)

{

printf("vor InterruptWait!\n");

InterruptWait (0,NULL);

.......



Please help me!



Thanks

Andreas

Post Reply

Return to “qdn.public.neutrino”