
Rev.1.00 May 22 2012
REJ09B0566
Library Reference
4.2.2 33BInterrupt Control Unit R_INTC_CreateExceptionHandlers
2) R_INTC_CreateExceptionHandlers
Synopsis
Assign handlers for the fixed-vector interrupts.
Prototype bool R_INTC_CreateExceptionHandlers(
void (* func())[9],
// Array of Callback function
);
Description
Register the user functions to be called by the fixed-vector interrupts.
[(*func())[9]]
Array Function pointer containing callback function for all exception
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Interrupt control
Reference
R_INTC_CreateExtInterrupt
Remarks • Please see the notes on callback function use
• 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
#include "r_pdl_intc.h"
/* Declaration of callback function */
Void callbackfunc1 (void);
Void callbackfunc2 (void);
Void callbackfunc3 (void);
Void callbackfunc4 (void);
Void callbackfunc5 (void);
Void callbackfunc6 (void);
Void callbackfunc7 (void);
Void callbackfunc8 (void);
Void callbackfunc9 (void);
void (*CallBackFunc( void ))[9] = { callbackfunc1,
callbackfunc2,callbackfunc3,callbackfunc4,
callbackfunc5,callbackfunc6,callbackfunc7,
callbackfunc8,callbackfunc9
};
void func( void )
{
/* Add a function to manage floating point errors */
R_INTC_CreateExceptionHandlers(CallBackFunc);
}
Komentáře k této Příručce