User`s manual

RX62N Group, RX621 Group 4. Library Reference
2) R_WDT_Control
Synopsis
Control the Watchdog operation.
Prototype
bool R_WDT_Control(
uint8_t data
// Control selection
);
Description
Modify the operation of the Watchdog timer.
[data]
Configure the timer channel.
To set multiple options at the same time, use "|" to separate each value.
Counter stop
PDL_WDT_STOP
Disable the counter clock source.
Counter update
PDL_WDT_RESET_COUNTER
Reset the counter.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Watchdog Timer
Reference
R_WDT_Create
Remarks
R_WDT_Create must be first be used to configure the timer.
Program example
/* RPDL definitions */
#include "r_pdl_wdt.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Prevent the watchdog timer from overflowing */
R_WDT_Control(
PDL_WDT_RESET_COUNTER
);
}
R20UT0084EE0112 Rev.1.12 Page 4-164
July. 16, 2014