04-06-2018 04:20 AM
I want to create an interrupt on 4 buttons that are on the board that has Zynq processor.
I have a code that always executes and I want those buttons to control the behavior of the main process.I thought to put all the code in a while loop but that would be bad because it will execute some parts of code that are not needed.
I found tutorials just for petalinux and this article https://www.xilinx.com/support/answers/51138.html but in zynq_main file the example is not clear enough and at the end it waits 15 seconds for interrupt,isn't this a bad behavior?
Also is there an example for putting the code in a process and running it so that it can be set how much resources does it use ?
04-06-2018 06:02 AM
I am not sure I completely follow what you are trying to do, but here is one possible option:
04-06-2018 06:24 AM
04-06-2018 07:20 AM
Check out Chapter 3 of UG1165:
Hopefull that will help.