Rev.1.01 2007.02.16
RJJ10J1643-0101
176
__EnableInterrupt
Synopsis
<Control external interrupt>
Boolean __EnableInterrupt(unsigned long data1, unsigned int data2)
data1
Setup data 1 (content differs with MCU type)
data2
Setup data 2 (content differs with MCU type)
Description
Changes the operating condition of a specified external interrupt.
[data1]
The following definition values can be set for data1. To specify multiple definition values at the
same time, use the symbol “|” to separate each specified value. Note, however, that multiple
external interrupts cannot be specified at the same time.
(M16C)
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.
(R8C)
RAPI_INT0
Uses _INT0 interrupt.
RAPI_INT1
Uses _INT1 interrupt.
RAPI_INT2
Uses _INT2 interrupt.
RAPI_INT3
Uses _INT3 interrupt.
RAPI_KEY
Uses key input interrupt.
(H8/300H)
RAPI_IRQ0
Uses IRQ0 interrupt.
RAPI_IRQ1
Uses IRQ1 interrupt.
RAPI_IRQ2
Uses IRQ2 interrupt.
RAPI_IRQ3
Uses IRQ3 interrupt.
RAPI_WKP
Uses WKP interrupt.
RAPI_NOT_INT_
REQUEST
Does not request assertion of interrupt for a selected external
interrupt. (Default)
RAPI_INT_REQUEST
Requests assertion of interrupt for a selected external interrupt.
[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.