请问在PRU中通过__R31赋值产生中断,如何与ARM中的中断号对应起来?
ARM如何响应该中断,通过Hwi_create创建中断函数?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
请问在PRU中通过__R31赋值产生中断,如何与ARM中的中断号对应起来?
ARM如何响应该中断,通过Hwi_create创建中断函数?
感谢回复。
这个文档我看了很多遍,还是没搞懂怎么对应的。
比如在ARM-A9 Interrupt中查到pr0_host_intr0对应的INT Number为191:
191 PRU_ICSS0_EVTOUT0 pr0_host[0] output/events exported from PRU_ICSS0 pr0_host_intr0_intr_pend
在Table 30-30. PRU-ICSS0 System Events表中查到pr0_pru_mst_intr0对应的Event Number为16
16 pr0_pru_mst_intr0_intr_req
另外还有channel和host对应表:
到底如何对应呢?我完全搞糊涂了。
另外pru Support Package里面提供的例程PRU_PruToArm_Interrupt例程只有PRU的,有没有arm对应的例程呢?