User`s manual

RX62N Group, RX621 Group 4. Library Reference
4) R_INTC_CreateExceptionHandlers
Synopsis
Assign handlers for the fixed-vector interrupts.
Prototype
bool R_INTC_CreateExceptionHandlers(
void * func1,
// Callback function
void * func2,
// Callback function
void * func3,
void * func4
// Callback function
// Callback function
);
Description
Register the user functions to be called by the fixed-vector and software interrupts.
[func1]
The function to be called when a privileged instruction is detected while in user mode.
Specify PDL_NO_FUNC if no callback function is required.
[func2]
The function to be called when access is made to protected memory while in user mode.
Specify PDL_NO_FUNC if no callback function is required.
[func3]
The function to be called when an undefined instruction is detected.
Specify PDL_NO_FUNC if no callback function is required.
[func4]
The function to be called when a floating point exception is detected.
Specify PDL_NO_FUNC if no callback function is required.
Return value
True.
Category
Interrupt control
Reference
Remarks
Please see the notes on callback function use in §6.
A callback function is executed by the interrupt processing function. This means that no other
interrupt can be processed until the callback function has completed.
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 )
{
/* Add a function to manage floating point errors */
R_INTC_CreateExceptionHandlers(
PDL_NO_FUNC,
PDL_NO_FUNC,
PDL_NO_FUNC,
FloatingPointFunc
);
}
R20UT0084EE0112 Rev.1.12 Page 4-16
July. 16, 2014