User`s manual

RX62N Group, RX621 Group 4. Library Reference
3) R_CMT_Destroy
Synopsis
Disable a CMT unit.
Prototype
bool R_CMT_Destroy(
uint8_t data
// Unit selection
);
Description
Shut down a CMT unit.
[data]
The timer unit n (where n = 0 or 1).
Unit 0 comprises channels CMT0 and CMT1.
Unit 1 comprises channels CMT2 and CMT3.
Return value
True if the unit selection is valid; otherwise false.
Category
Compare Match Timer
Reference
R_CMT_Create
Remarks
The timer unit is put into the stop state to reduce power consumption.
Program example
/* RPDL definitions */
#include "r_pdl_cmt.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Shutdown channels 0 and 1 */
R_CMT_Destroy(
0
);
}
R20UT0084EE0112 Rev.1.12 Page 4-151
July. 16, 2014