Altera_Forum
Honored Contributor
11 years agoTo handle interrupt from FPGA PB
Using Quaruts 14.0 on Linux 64bit on Altera's SOC dev kit.
There 2 example from Altera that i am using. The Altera-SoCFPGA-HardwareLib-GPIO-CV-GNU and Altera-SoCFPGA-HardwareLib-FPGA-CV-GNU. The FPGA side is GHRD from Altera. I am trying to catch interrupt while pushing FPGA push button. Nothing happened on HPS side. What is missing on the flow? The actual code is: alt_int_global_init(); alt_int_cpu_init(); alt_int_cpu_enable(); alt_int_global_enable(); target = 0x3; alt_int_dist_target_set(ALT_INT_INTERRUPT_F2S_FPGA_IRQ0, target); alt_int_dist_trigger_set(ALT_INT_INTERRUPT_F2S_FPGA_IRQ0, ALT_INT_TRIGGER_LEVEL); alt_int_dist_enable(ALT_INT_INTERRUPT_F2S_FPGA_IRQ0); alt_int_isr_register(ALT_INT_INTERRUPT_F2S_FPGA_IRQ0, fpga_isr_callback, NULL);