Forum Discussion
Altera_Forum
Honored Contributor
13 years agouclinux PIO device driver interrupt handler not execute
Hi, Thanks in advance for any help I can get. I have a NIOS2 w/MMU running uClinux v3.7. It's a DE2-115 development kit with Cyclone IV FPGA. I use the PIO megafunction to monitor input rising ...
Altera_Forum
Honored Contributor
13 years agoHi Kazu,
You are right. I have left out the virtual memory to be part of the base address. After I included the MMU, the interrupt handler function trigger when there is a rising edge. You have mentioned there is a formal way to set and reset the ienable and status register without implementing directly into the control registers. Which function call are you referring to? I apologize for another dope question regarding clearing the interrupt flag. Do I have to clear the "edge_capture" register in the interrupt handler function? *(ALTERA_BASE_ADDRESS + 0x03) = 0x00 Thanks again, Yeung