需求:
请问是否有裸机下的SRIO 门铃中断的案例或者是相关资料可供参考,感谢!
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.
请下载下面的K1_STK_v1.1,里面有SRIO门铃中断代码SRIO_Interrupts.c
https://e2echina.ti.com/support/processors/f/processors-forum/47664/faq-keystone1#pi239031350=2
/*---------wait all enabled ports OK-------------*/
for(i=0; i<SRIO_MAX_PORT_NUM; i++)
{
if(srio_cfg->blockEn.bLogic_Port_EN[i])
{
while(0==(gpSRIO_regs->RIO_SP[i].RIO_SP_ERR_STAT&
CSL_SRIO_RIO_SP_ERR_STAT_PORT_OK_MASK));
}
}
程序卡在这段代码了,请问这是什么地方出问题了,可能引起的原因是哪些呢?怎么根据这些变量查找到对应的寄存器,这段看不明白