I have just started to work with the Zynq 7020 SoC. I have got one FreeRTOS task up and running and now I would like to implement interrupt comming from the PL. I have searched through this forum and I have found that whenever I want to use interrupts along with the FreeRTOS I have to use thexInterruptControllerinstance of GIC defined in theportZynq7000.cmodule. It make sense to me because also the FreeRTOS needs interrupts for starting its scheduler. Unfortunately I am not sure what should be the next steps necessary to get interrupts under FreeRTOS up and running.
Based on what I have mentioned above I guess that I have to ommit calls of functionsXScuGic_LookupConfigandXScuGic_CfgInitializebecause both of them have been already called by theFreeRTOS_SetupTickInterruptfunction defined inportZynq7000.cmodule. I have to call only theXScuGic_Connectand theXScuGic_Enablefunctions to append my interrupt to the existing GIC instance. Is that correct?
If I will continue with comparison between usage of interrupts on bare metal and interrupts usage under FreeRTOS I guess that in the second case I can also ommit theXil_ExceptioRegisterHandlerandXil_ExceptionEnablefunction calls. Is that correct?
In case the above mentioned settings is correct I should be able to observe IRQ inspi_status_0orspi_status_1register based on IRQ ID. Is that correct?