Bounce Timer Code - Renesas RX Series User Manual

Rx23w group. solution starter kit for rx23w smart configurator
Hide thumbs Also See for RX Series:
Table of Contents

Advertisement

Renesas Solution Starter Kit for RX23W
Open the Config_ICU_user.c file and insert the following code in the user code area for include near the top of
the file:
/* Start user code for include. Do not edit comment generated here */
/* Defines switch callback functions required by interrupt handlers */
#include
"r_rssk_switch.h"
/* End user code. Do not edit comment generated here */
In the same file insert the following code in the user code area inside the function
r_Config_ICU_irq1_interrupt:
/* Start user code for r_Config_ICU_irq1_interrupt. Do not edit comment generated here */
/* Switch 1 callback handler */
R_SWITCH_IsrCallback1();
/* End user code. Do not edit comment generated here */
In the same file insert the following code in the user code area inside the function
r_Config_ICU_irq0_interrupt:
/* Start user code for r_Config_ICU_irq0_interrupt. Do not edit comment generated here */
/* Switch 2 callback handler */
R_SWITCH_IsrCallback2();
/* End user code. Do not edit comment generated here */
5.4.2
De-bounce Timer Code
In the e
studio
Project Tree,
2
'Config_CMT1_user.c' file and insert the following code in the user code area for include near the top of the
file:
/* Start user code for include. Do not edit comment generated here */
/* Defines switch callback functions required by interrupt handlers */
#include
"r_rssk_switch.h"
/* End user code. Do not edit comment generated here */
In the Config_CMT1_user.c' file, insert the following code in the user code area inside the function
r_Config_CMT1_cmi1_interrupt:
/* Start user code for r_Config_CMT1_cmi1_interrupt. Do not edit comment generated here */
/* Stop this timer - we start it again in the de-bounce routines */
R_Config_CMT1_Stop();
/* Call the de-bounce call back routine */
R_SWITCH_DebounceIsrCallback();
/* End user code. Do not edit comment generated here */
In the e
studio Project Tree, expand the 'src\smc_gen\Config_CMT2' folder and open the file
2
'Config_CMT2_user.c' file and insert the following code in the user code area for include near the top of the
file:
/* Start user code for include. Do not edit comment generated here */
/* Defines switch callback functions required by interrupt handlers */
#include
"r_rssk_switch.h"
/* End user code. Do not edit comment generated here */
R20UT4449EG0100 Rev. 1.00
Aug.30.19
expand the
'src\smc_gen\Config_CMT1' folder
5. User Code Integration
and open
the
Page 48 of 64

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx200 seriesRssk

Table of Contents