User`s manual

RX62N Group, RX621 Group 4. Library Reference
Category
Interrupt control
Reference
None.
Remarks
The selected interrupt pin is enabled automatically.
Port Function Control registers PF8IRQ or PF9IRQ are modified to select the A or B IRQn pin.
For smaller device packages, some A or B options are removed.
For the 85-pin package, IRQ5, IRQ6 and IRQ7 are not available.
The appropriate I/O port ICR and DDR registers are modified.
Please see the notes on callback function use in §6.
The NMI callback function should not return. It should stop operation or reset the system.
If the NMI interrupt fails to initialise, this function will return false.
Program example
/* RPDL definitions */
#include "r_pdl_intc.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
/* Declaration of callback function */
void CallBackFunc( void );
void func( void )
{
/* Configure the IRQ13 interrupt on pin IRQ13-A */
R_INTC_CreateExtInterrupt(
PDL_INTC_IRQ13,
PDL_INTC_FALLING | PDL_INTC_A,
CallBackFunc,
7
);
}
R20UT0084EE0112 Rev.1.12 Page 4-10
July. 16, 2014