RL78/G13
Clock Generator (Clock Switching) CC-RL
R01AN2831EJ0100 Rev. 1.00
Page 10 of 51
May 28, 2015
5.2 File
Configuration
Table 5.1 lists the files that are used in this sample code. This table excludes files which are automatically generated by
the integrated development environment.
Table 5.1 File Configuration
File Name
Description
Remarks
r_cg_cgc.c
Clock generator module
CPU clock initialization
r_cg_cgc.h
External reference header file for the clock generator
module
r_cgc_user.c
Processing specific to the clock generator sample
code
Additional functions:
R_CGC_ChangeClock,
R_CGC_HOCOToX1,
R_CGC_X1ToXT1,
R_CGC_XT1ToHOCO,
R_CGC_GetClockStatus,
R_CGC_Get_X1_Status
R_CGC_Get_XT1_Status,
R_CGC_Get_HOCO_Status,
R_CGC_StopClock
r_cg_intc.c
External interrupt input module
r_cg_intc.h
External reference header file for the external interrupt
input module
r_cg_intc_user.c
External interrupt input module
INTP0 external interrupt
r_cg_it.c
12-bit interval timer module
r_cg_it.h
External reference header file for the 12-bit interval
timer module
r_cg_it_user.c
Processing specific to the 12-bit interval timer module
sample code
Additional function:
R_IT_Wait_ms
r_main.c Main
processing
r_cg_macrodriver.
h
Common header file
Type definitions,
Macro definitions about error status
r_cg_userdefine.h Macro
definitions
specific to the sample code
r_cg_port.c
Port function module
I/O port setting
r_cg_port.h
External reference header file for the port function
module
r_systeminit.c System
module
Initialization and system functions
r_cg_timer.c Timer
module
r_cg_timer.h External
reference
header file for the timer module
r_cg_timer_user.c
Processing specific to the timer module sample code
TAU0 channel 0 interrupt
Additional functions:
R_TAU0_Channel0_GetParameter,
R_TAU0_Channel0_Restart,
R_TAU0_Channel0_ChangeInterval,
r_tau0_channel0_interrupt