#ifndef _FC7240_WDOG_NU_Tztufn14_REGS_H_ #define _FC7240_WDOG_NU_Tztufn14_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- WDOG Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup WDOG_Peripheral_Access_Layer WDOG Peripheral Access Layer * @{ */ /** WDOG - Size of Registers Arrays */ /** WDOG - Register Layout Typedef */ typedef struct { __IO uint32_t CS ; /* Watchdog Control and Status Register, offset: 0x0 */ __IO uint32_t COUNTER ; /* Watchdog Counter Register, offset: 0x4 */ __IO uint32_t TIMEOUT ; /* Watchdog Timeout Value Register, offset: 0x8 */ __IO uint32_t WINDOW ; /* Watchdog Window Register, offset: 0xC */ } WDOG_Type, *WDOG_MemMapPtr; /** Number of instances of the WDOG module. */ #define WDOG_INSTANCE_COUNT (2u) /* WDOG - Peripheral instance base addresses */ /** Peripheral WDOG0 base address */ #define WDOG0_BASE (0x40022000u) /** Peripheral WDOG0 base pointer */ #define WDOG0 ((WDOG_Type *)WDOG0_BASE) /** Peripheral WDOG1 base address */ #define WDOG1_BASE (0x40433000u) /** Peripheral WDOG1 base pointer */ #define WDOG1 ((WDOG_Type *)WDOG1_BASE) /** Array initializer of WDOG peripheral base addresses */ #define WDOG_BASE_ADDRS {WDOG0_BASE, WDOG1_BASE} /** Array initializer of WDOG peripheral base pointers */ #define WDOG_BASE_PTRS {WDOG0, WDOG1} // need fill by yourself ///** Number of interrupt vector arrays for the WDOG module. */ //#define WDOG_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the WDOG module. */ //#define WDOG_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the WDOG peripheral type */ //#define WDOG_IRQS {WDOG0_IRQn, WDOG1_IRQn} /* ---------------------------------------------------------------------------- -- WDOG Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup WDOG_Register_Masks WDOG Register Masks * @{ */ /* CS Bit Fields */ #define WDOG_CS_DLY_CNT_MSB_MASK 0x30000u #define WDOG_CS_DLY_CNT_MSB_SHIFT 16u #define WDOG_CS_DLY_CNT_MSB_WIDTH 2u #define WDOG_CS_DLY_CNT_MSB(x) (((uint32_t)(((uint32_t)(x))<