Rev.1.00 2007.11.1
REC10B0002-0100
86
__ClearInterruptFlag
Synopsis
<Clear external interrupt flag>
Boolean __ClearInterruptFlag(unsigned long data)
data Setup data
Description
Clears the interrupt request flag of a specified external interrupt.
[data]
RAPI_INT0 Uses _INT0 interrupt.
RAPI_INT1 Uses _INT1 interrupt.
RAPI_INT2 Uses _INT2 interrupt.
RAPI_INT3 Uses _INT3 interrupt.
RAPI_INT4 Uses _INT4 interrupt.
RAPI_INT5 Uses _INT5 interrupt.
RAPI_KEY Uses key input interrupt.
Return value
If the external interrupt specification is incorrect, RAPI_FALSE is returned; otherwise,
RAPI_TRUE is returned.
Functionality
External interrupt
Reference
__SetInterrupt, __EnableInterrupt, __GetInterruptFlag
Remark
•
If an undefined value is specified in the first argument, operation of the API cannot
be guaranteed.
Program example
#include " rapi_interrupt_m16c_62p.h"
void func( void )
{
/* Clear status of _INT0 interrupt */
__ClearInterruptFlag( RAPI_INT0 );
}