interrupt handling

Hi,
whats wrong in this part?

SIGEV_INTR_INIT( &event );


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

for (;:wink:

{

printf(“vor InterruptWait!\n”);

InterruptWait (0,NULL);





Please help me!



Thanks

Andreas

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 (;:wink:

{

printf(“vor InterruptWait!\n”);

InterruptWait (0,NULL);





Please help me!



Thanks

Andreas