
Rev.1.00 May 22 2012
REJ09B0566
4
4.2.7 Multi Function Timer Pulse Unit R_CMT_Destroy
2) 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).
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
/* PDL definitions */
#include “r_pdl_cmt.h”
/* PDL device-specific definitions */
#include “r_pdl_definitions.h”
void func(void)
{
/* Shutdown channels 0 and 1 */
R_CMT_Destroy(
0
);
}
Comentários a estes Manuais