Hi,
I have 2 interrupt sources in my project (for now) and i have some issues about serving both interrupts. I have a one hardware interrupt source and a usb module. When i run my code i noticed that my code never visits the usb_isr although usb interrupt source registers are set. However hardware intterupt is served and i didnt encounter any problems related to it.
You can see the status of usb interrupt registers below. As you can see interrupt flags for both endpoint 0 and endpoint 1 are set.
Below you can see how i enable the interrupts in initialization function. I use the IRQ_plug() and IRQ_enable() commands. I also set all used bits of USB Interrupt Mask Set Registers and their values are also below:
//////////////////////////////////////// //These values set in another function// USB_INTMSKSETR1=0x0F1F; USB_INTMSKSETR2=0X01FF; //////////////////////////////////////// IRQ_setVecs((Uint32)(&VECSTART)); IRQ_plug(INT1_EVENT,&int1_isr); IRQ_plug(USB_EVENT, &usb_isr); /* Enabling Interrupt */ IRQ_enable(INT1_EVENT); IRQ_enable(USB_EVENT); IRQ_globalEnable();
Any comments, ideas, suggestions, resource recommendations are much appreciated.
Thank you in advance.
Regards.
Hasan.