User`s manual
RX62N Group, RX621 Group 4. Library Reference
5) R_INTC_ControlExtInterrupt
Synopsis
External interrupt control.
Prototype
bool R_INTC_ControlExtInterrupt(
uint8_t data1,
// Pin selection
uint32_t data2
// Control
);
Description
Modifies the specified external interrupt.
[data1]
Choose the interrupt pin to be controlled.
PDL_INTC_IRQn (n = 0 to 15) or
PDL_INTC_NMI
IRQn interrupt pin or
NMI interrupt pin
[data2]
Select the controls. If multiple selections are required, use "|" to separate each selection.
•
Enable or disable the interrupt pin (for the IRQ pins)
PDL_INTC_ENABLE or
PDL_INTC_DISABLE
Enable or disable the IRQn interrupt pin.
•
Detection sense selection (for the IRQ pins)
PDL_INTC_LOW or
Low level detection
PDL_INTC_FALLING or
Falling edge detection
PDL_INTC_RISING or
Rising edge detection
PDL_INTC_BOTH
Falling and rising edge detection
•
Interrupt request clearing
PDL_INTC_CLEAR_IR_FLAG
Clear the Interrupt Request flag.
This is not required if:
• A callback function has been specified.
• The interrupt priority level is higher than 0.
• The processor interrupt priority level is lower than the
interrupt priority level.
This operation should not be applied when low-level
detection is used.
PDL_INTC_CLEAR_OSD_FLAG
Clear the Oscillation Stop detection flag.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Interrupt control
Reference
R_INTC_CreateExtInterrupt, R_INTC_GetExtInterruptStatus
Remarks
•
The NMI pin was enabled during R_INTC_CreateExtInterrupt and cannot be disabled (an MCU
design feature).
•
When disabling an IRQn pin, the Interrupt Request flag will be cleared automatically.
A callback function may be called once more if a valid event occurs just before the interrupt pin is
disabled.
•
R20UT0084EE0112 Rev.1.12 Page 4-17
July. 16, 2014