cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
zhengyudennis1
Participant
Participant
6,342 Views
Registered: ‎10-05-2015

Register an interrupt handler with multiple input variables (using microblaze_register_handler)

Hi all,

   Is it correct to register an interrupt handler with multiple input vairables using microblaze_register_handler? For example, if my interrupt handler is int_handle(DMA *d1, UART *u1), can I registe it through microblaze_register_handler((XInterruptHandler)interrupt_proc, (void *)0)? How will the compiler process DMA *d1 and UART *u1? Thanks much.

 

0 Kudos
Reply
1 Reply
Anonymous
Not applicable
6,306 Views

Yes, you can do this. you can connect an interrupt controller to your Microblaze. When registering your interrupt, you pass a 32 bit mask. so you can register 32 interrupts to the same handler if you wish, and handle this in your handler (ie ACK the correct bit)

 

Have a look at the examples in the driver for the interrupt controller. These are simple examples that you can modify to suit your design needs:

C:/Xilinx/SDK/2015.2/data/embeddedsw/XilinxProcessorIPLib/drivers/intc_v3_1/examples

0 Kudos
Reply