Renesas Single-Chip Microcomputer M38C89T-ADF Manual de usuario Pagina 28

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 138
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 27
Rev.1.00 May 22 2012
REJ09B0566
4-8
Library Reference
4.2.2 33BInterrupt Control Unit R_INTC_CreateExceptionHandlers
4
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);
}
Vista de pagina 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 137 138

Comentarios a estos manuales

Sin comentarios