Download Renesas Peripheral Driver Library User`s Manual (RX63N Group)

Transcript
RX63N Group
3)
4. Library Reference
R_TPU_Destroy
Synopsis
Disable a timer unit.
Prototype
bool R_TPU_Destroy(
uint8_t data // Unit selection
);
Description
Shut down a timer pulse unit
[data]
The timer pulse unit n (where n = 0 or 1).
Unit 0 comprises channels TPU0 to TPU5.
Unit 1 comprises channels TPU6 to TPU11.
Return value
Category
True if the unit selection is valid; otherwise false.
Timer Pulse Unit
Reference
Remarks
•
•
The timer pulse unit is put into the stop state to reduce power consumption.
Unit 1 is not available for device packages with 100 pins.
Program example
#include "r_pdl_tpu.h"
void func(void)
{
/* Shutdown TPU unit 0 (channels 0 to 5) */
R_TPU_Destroy(
0
);
}
R20UT1963EE0100 Rev.1.00
Jul 19, 2012
Page 216 of 487