cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Participant
Participant
233 Views
Registered: ‎06-27-2019

Microblaze edge sensitive interrupt

Hello,

I am attempting to put the microblaze interrupt line to be edge-sensitive (does not matter if it is rising or falling, or even both).

I've looked everywhere, the documentation, this forums, and the MicroZed chronicles and I still cannot find exactly how to make the microblaze interrupt edge sensitive. Can someone point me to the right direction or let me know what I am doing wrong?

 

	microblaze_get_pvr(&pvr);

	int ret = MICROBLAZE_PVR_INTERRUPT_IS_EDGE(pvr);

	pvr.pvr[2] = pvr.pvr[2] | MICROBLAZE_PVR2_INTERRUPT_IS_EDGE_MASK;

	ret = MICROBLAZE_PVR_INTERRUPT_IS_EDGE(pvr);

I am attempting to make the microblaze edge sensitive manually with the code above, however this does not work. I am not 100% sure if I should even be touching the PVR registers, but it is the only register that has the keyword that I am looking for, 'edge'.

Please help, I've been stuck with this for a few days now.

 

0 Kudos