/*******************************************************************************
* Function Name: RX_ClearInterrupt
********************************************************************************
*
* Summary:
* Clears any active interrupts attached to port and returns the value of the
* interrupt status register.
*
* Parameters:
* None
*
* Return:
* Returns the value of the interrupt status register
*
*******************************************************************************/
uint8 RX_ClearInterrupt(void)
{
return (RX_INTSTAT & RX_MASK) >> RX_SHIFT;
}
#endif /* If Interrupts Are Enabled for this Pins component */
这个是官方例程,你可以看看 |