Rev.1.01 2007.02.16
RJJ10J1643-0101
174
RAPI_INT_RISING Specifies a rising edge for the active edge of a selected external
interrupt.
RAPI_INT_FALLING Specifies a falling edge for the active edge of a selected external
interrupt.
RAPI_WKP0_FALLING Enables _WKP0 pin input whose falling edge is the active edge.
RAPI_WKP0_RISING Enables _WKP0 pin input whose rising edge is the active edge.
RAPI_WKP1_FALLING Enables _WKP1 pin input whose falling edge is the active edge.
RAPI_WKP1_RISING Enables _WKP1 pin input whose rising edge is the active edge.
RAPI_WKP2_FALLING Enables _WKP2 pin input whose falling edge is the active edge.
RAPI_WKP2_RISING Enables _WKP2 pin input whose rising edge is the active edge.
RAPI_WKP3_FALLING Enables _WKP3 pin input whose falling edge is the active edge.
RAPI_WKP3_RISING Enables _WKP3 pin input whose rising edge is the active edge.
RAPI_WKP4_FALLING Enables _WKP4 pin input whose falling edge is the active edge.
RAPI_WKP4_RISING Enables _WKP4 pin input whose rising edge is the active edge.
RAPI_WKP5_FALLING Enables _WKP5 pin input whose falling edge is the active edge.
RAPI_WKP5_RISING Enables _WKP5 pin input whose rising edge is the active edge.
• Specifiable definition values when _IRQ0–3 interrupts are used (RAPI_IRQ0 to
RAPI_IRQ3 specified)
(Polarity) Specify one from { RAPI_INT_RISING, RAPI_INT_FALLING }. The
default value is RAPI_INT_FALLING.
(Interrupt
request)
Specify one from { RAPI_NOT_INT_REQUEST, RAPI_INT_REQUEST }.
The default value is RAPI_NOT_INT_REQUEST.
• Specifiable definition values when WKP interrupt is used (RAPI_WKP specified)
(_WKP0 pin input) Specify one from { RAPI_WKP0_FALLING, RAPI_WKP0_RISING }. If
_WKP0 pin input is not specified, “_WKP0 pin input disabled” is set.
(_WKP1 pin input) Specify one from { RAPI_WKP1_FALLING, RAPI_WKP1_RISING }. If
_WKP1 pin input is not specified, “_WKP1 pin input disabled” is set.
(_WKP pin input) Specify one from { RAPI_WKP2_FALLING, RAPI_WKP2_RISING }. If
_WKP2 pin input is not specified, “_WKP2 pin input disabled” is set.
(_WKP3 pin input) Specify one from { RAPI_WKP3_FALLING, RAPI_WKP3_RISING }. If
_WKP3 pin input is not specified, “_WKP3 pin input disabled” is set.
(_WKP4 pin input) Specify one from { RAPI_WKP4_FALLING, RAPI_WKP4_RISING }. If
_WKP4 pin input is not specified, “_WKP4 pin input disabled” is set.
(_WKP5 pin input) Specify one from { RAPI_WKP5_FALLING, RAPI_WKP5_RISING }. If
_WKP5 pin input is not specified, “_WKP5 pin input disabled” is set.
[data2]
(M16C) (R8C)
Specify the interrupt priority level (0–7) to be set in the interrupt control register.
(H8/300H)
Specify the interrupt priority level (0–1) to be set in the interrupt control register. For
the CPUs that do not have an interrupt control register, specify 0.
Return value
If the external interrupt specification is incorrect, RAPI_FALSE is returned; otherwise,