#ifndef HARDWARE_WDT_H_
#define HARDWARE_WDT_H_

typedef struct
{
	volatile unsigned load;
	volatile unsigned val;
	volatile unsigned ctrl;
	volatile unsigned clr;
	volatile unsigned intraw;
	volatile unsigned interrupt;
	volatile unsigned lock;
	volatile unsigned tcr;
	volatile unsigned top;
} WdtRegs;

#define WDT_CTRL_RST_EN (1U << 1)
#define WDT_CTRL_INT_EN (1U << 0)

#define WDT_CLR_CLEAR   1U

#define WDT_INTRAW_RAW_WDT  1U

#define WDT_INT_INT_WDT 1U

#define WDT_LOCK_CODE       0x55U
#define WDT_LOCK_LOCK_WDT   1U

#define WDT_TCR_TEST_EN 1U

#define WDT_TOP_TST_INT (1U << 1)
#define WDT_TOP_TST_RES (1U << 0)

#endif /* HARDWARE_WDT_H_ */
