Rev.1.01 2007.02.16
RJJ10J1643-0101
132
#include "rapi_timer_r8c_13.h"
void TimerIntFunc0( void ){}
void TimerIntFunc1( void ){}
void TimerIntFunc2( void ){}
void func( void )
{
unsigned int *p_func[] = {(void*) TimerIntFunc0,(void*) TimerIntFunc1,
(void*) TimerIntFunc2};
unsigned char p_ic[] = {1,2,3};
unsigned int p_cmp[] = {0x1234, 0x9876};
/* Set up timer C as output compare mode */
__CreateOutputCompare(
RAPI_TIMER_C|RAPI_TIMER_ON|RAPI_RELOAD|RAPI_L_1|RAPI_L_0|RAPI_F32|
RAPI_CMP02_ENABLE|RAPI_CMP12_ENABLE, p_cmp, p_ic, p_func );
}