/******************************************************************************* * DESCRIPTION : WDT register header ******************************************************************************/ #ifndef WDT_REGISTER_H__ #define WDT_REGISTER_H__ #include /* RWDT base address */ /* 0xE6020000 */ #define RWDT_BASE (BASE_RWDT_ADDR) /* RWDT counter */ #define RWDT_RWTCNT (RWDT_BASE + 0x0000U) #define RWTCNT_UPPER (0x5A5A0000) /* RWDT control/status A */ #define RWDT_RWTCSRA (RWDT_BASE + 0x0004U) #define RWTCSRA_UPPER (0xA5A5A500) #define RWTCSRA_TME ((1U) << 7) #define RWTCSRA_WRFLG ((1U) << 5) #define RWTCSRA_WOVF ((1U) << 4) #define RWTCSRA_WOVF_E ((1U) << 3) #define RWTCSRA_CKS0 ((0x7U)) /* RWDT control/status B */ #define RWDT_RWTCSRB (RWDT_BASE + 0x0008U) #define RWTCSRB_CKS1 ((0x3FU)) /* SWDT base address */ /* 0xE6030000 */ #define SWDT_BASE (BASE_SWDT_ADDR) /* SWDT counter */ #define SWDT_SWTCNT (SWDT_BASE + 0x0000U) /* SWDT control/status A */ #define SWDT_SWTCSRA (SWDT_BASE + 0x0004U) /* SWDT control/status B */ #define SWDT_SWTCSRB (SWDT_BASE + 0x0008U) #endif /* WDT_REGISTER_H__ */