还没清中断挂起就自动进入中断了...,main函数里面只是初始化外设的一些函数,但是每次只要一涉及到写初始化数据到si4438里面去,中断就自动进了。
本来希望到这一步清挂起时再进入。- // Read ITs, clear pending ones
- abApi_Write[0] = CMD_GET_INT_STATUS; // Use interrupt status command
- abApi_Write[1] = 0; // Clear PH_CLR_PEND
- abApi_Write[2] = 0; // Clear MODEM_CLR_PEND
- abApi_Write[3] = 0; // Clear CHIP_CLR_PEND
- // bApi_SendCommand(4,abApi_Write); // Send command to the radio IC
- // SI4438_Write(abApi_Write[0] ,3,&abApi_Write[1] );
- SendCommand(4,abApi_Write);
- Api_GetResponse(8,abApi_Write); // Make sure that CTS is ready then get the response
|