1 /*""FILE COMMENT""*******************************************************
2 * System Name	: Independent Watchdog timer API for RX62Nxx
3 * File Name		: r_pdl_iwdt.h
4 * Version		: 1.02
5 * Contents		: IWDT API header
6 * Customer		:
7 * Model			:
8 * Order			:
9 * CPU			: RX
10 * Compiler		: RXC
11 * OS			: Nothing
12 * Programmer	:
13 * Note			:
14 ************************************************************************
15 * Copyright, 2011. Renesas Electronics Corporation
16 * and Renesas Solutions Corporation
17 ************************************************************************
18 * History		: 2011.04.08
19 *				: Ver 1.02
20 *				: CS-5 release.
21 *""FILE COMMENT END""**************************************************/
22 
23 #ifndef R_PDL_IWDT_H
24 #define R_PDL_IWDT_H
25 
26 #include "r_pdl_common_defs_RX62Nxx.h"
27 
28 /* Function prototypes */
29 bool R_IWDT_Set(
30 	uint16_t
31 );
32 bool R_IWDT_Control(
33 	uint8_t
34 );
35 bool R_IWDT_Read(
36 	uint16_t *
37 );
38 
39 /* Calculation selection */
40 #define PDL_IWDT_TIMEOUT_1024	0x0001u
41 #define PDL_IWDT_TIMEOUT_4096	0x0002u
42 #define PDL_IWDT_TIMEOUT_8192	0x0004u
43 #define PDL_IWDT_TIMEOUT_16384	0x0008u
44 
45 #define PDL_IWDT_CLOCK_OCO_1	0x0010u
46 #define PDL_IWDT_CLOCK_OCO_16	0x0020u
47 #define PDL_IWDT_CLOCK_OCO_32	0x0040u
48 #define PDL_IWDT_CLOCK_OCO_64	0x0080u
49 #define PDL_IWDT_CLOCK_OCO_128	0x0100u
50 #define PDL_IWDT_CLOCK_OCO_256	0x0200u
51 
52 #define PDL_IWDT_REFRESH	0x01u
53 
54 #endif
55 /* End of file */
56