/*
 * Copyright (c) 2018-2025 Renesas Electronics Corporation. All rights reserved.
 */

;#RWDT
;#R-CarH3 77. RCLK Watchdog Timer
.EQU	RWDT_RWTCNT		,	0xE6020000		;#RCLK watchdog timer counter
#if ACC_PROT_ENABLE == 0
.EQU	RWDT_RWTCSRA	,	0xE6020004  	;#RCLK watchdog timer control/status register A
#else
.EQU	RWDT_RWTCSRA	,	0x20E6020004	;#RCLK watchdog timer control/status register A
											;#Change to RGID2 when ACC_PROT_ENABLE == 1
#endif
.EQU	RWDT_RWTCSRB	,	0xE6020008		;#RCLK watchdog timer control/status register B

;#SystemWDT
;#R-CarH3 78. System Watchdog Timer
.EQU	SYSWDT_WTCNT	,	0xE6030000		;#watchdog timer counter
#if ACC_PROT_ENABLE == 0
.EQU	SYSWDT_WTCSRA	,	0xE6030004		;#watchdog timer control/status register A
#else
.EQU	SYSWDT_WTCSRA	,	0x20E6030004	;#watchdog timer control/status register A
											;#Change to RGID2 when ACC_PROT_ENABLE == 1
#endif
.EQU	SYSWDT_WTCSRB	,	0xE6030008		;#watchdog timer control/status register B

.EQU 	PRR				,	0xFFF00044		;#Product Register

.macro STARTFUNC name
	.global \name
	.func \name
	\name:
.endm

.macro ENDFUNC name
	.type \name, %function
	.endfunc
.endm

