#ifndef _FC7240_FCPIT_NU_Tztufn30_REGS_H_ #define _FC7240_FCPIT_NU_Tztufn30_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- FCPIT Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup FCPIT_Peripheral_Access_Layer FCPIT Peripheral Access Layer * @{ */ /** FCPIT - Size of Registers Arrays */ #define FCPIT_CHANNEL_NUM 4u /** FCPIT - Register Layout Typedef */ typedef struct { uint8_t RESERVED_0[8]; __IO uint32_t MCR ; /* Module Control Register, offset: 0x8 */ __IO uint32_t MSR ; /* Module Status Register, offset: 0xC */ __IO uint32_t MIER ; /* Module Interrupt Enable Register, offset: 0x10 */ __IO uint32_t SETTEN ; /* Set Timer Enable Register, offset: 0x14 */ __IO uint32_t CLRTEN ; /* Clear Timer Enable Register, offset: 0x18 */ uint8_t RESERVED_1[4]; struct { __IO uint32_t TVAL ; /* Timer Value Register, offset: 0x20 */ __I uint32_t CVAL ; /* Current Timer Value Register, offset: 0x24 */ __IO uint32_t TCTRL ; /* Timer Control Register, offset: 0x28 */ uint8_t RESERVED_2[4]; }CONTROLS[FCPIT_CHANNEL_NUM]; } FCPIT_Type, *FCPIT_MemMapPtr; /** Number of instances of the FCPIT module. */ #define FCPIT_INSTANCE_COUNT (1u) #define MAX_FCPIT_CHANNEL_NUM (4u) /* FCPIT - Peripheral instance base addresses */ /** Peripheral FCPIT base address */ #define FCPIT_BASE (0x4002e000u) /** Peripheral FCPIT base pointer */ #define FCPIT ((FCPIT_Type *)FCPIT_BASE) /** Array initializer of FCPIT peripheral base addresses */ #define FCPIT_BASE_ADDRS {FCPIT_BASE} /** Array initializer of FCPIT peripheral base pointers */ #define FCPIT_BASE_PTRS {FCPIT} // need fill by yourself ///** Number of interrupt vector arrays for the FCPIT module. */ //#define FCPIT_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the FCPIT module. */ //#define FCPIT_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the FCPIT peripheral type */ //#define FCPIT_IRQS {FCPIT_IRQn} /* ---------------------------------------------------------------------------- -- FCPIT Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup FCPIT_Register_Masks FCPIT Register Masks * @{ */ /* MCR Bit Fields */ #define FCPIT_MCR_DBG_EN_MASK 0x8u #define FCPIT_MCR_DBG_EN_SHIFT 3u #define FCPIT_MCR_DBG_EN_WIDTH 1u #define FCPIT_MCR_DBG_EN(x) (((uint32_t)(((uint32_t)(x))<