串口中断程序,在DSP/BIOS 的发送ISR中断中调用C64_disableIER关闭中断,但是调用后不起作用,中断照常进入,问应如何进行操作,是何原因?谢谢!
代码如下:
void SerialPortSendInt()
{
CSL_mcbspWrite (hMcbsp, CSL_MCBSP_WORDLEN_16, &xmitbuf[loopIndex]);
loopIndex++;
if(loopIndex == BUFFER)
{
loopIndex = 0;
C64_disableIER(MCBSP_XINT1_INT_FLAG);//这里失败
}
}