#ifndef _FC7240_AHB_OVERLAY_NU_Tztufn37_REGS_H_ #define _FC7240_AHB_OVERLAY_NU_Tztufn37_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- AHB_OVERLAY Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup AHB_OVERLAY_Peripheral_Access_Layer AHB_OVERLAY Peripheral Access Layer * @{ */ /** AHB_OVERLAY - Size of Registers Arrays */ /** AHB_OVERLAY - Register Layout Typedef */ typedef struct { __IO uint32_t REGION_0_SRC ; /* Region 0 Source Address Register, offset: 0x00 */ __IO uint32_t REGION_0_DST ; /* Region 0 Destination Address Register, offset: 0x04 */ __IO uint32_t REGION_0_SIZE ; /* Region 0 Size Register, offset: 0x08 */ __IO uint32_t REGION_0_EN ; /* Region 0 Enable Register, offset: 0x0C */ __IO uint32_t REGION_1_SRC ; /* Region 1 Source Address Register, offset: 0x10 */ __IO uint32_t REGION_1_DST ; /* Region 1 Destination Address Register, offset: 0x14 */ __IO uint32_t REGION_1_SIZE ; /* Region 1 Size Register, offset: 0x18 */ __IO uint32_t REGION_1_EN ; /* Region 1 Enable Register, offset: 0x1C */ __IO uint32_t REGION_2_SRC ; /* region 2 source address Register, offset: 0x20 */ __IO uint32_t REGION_2_DST ; /* Region 2 Destination Address Register, offset: 0x24 */ __IO uint32_t REGION_2_SIZE ; /* Region 2 Size Register, offset: 0x28 */ __IO uint32_t REGION_2_EN ; /* Region 2 Enable Register, offset: 0x2C */ uint8_t RESERVED_0[80]; __IO uint32_t GLOBAL_EN ; /* Enable of FAR and Overlay Register, offset: 0x80 */ __I uint32_t INTR_FLAG ; /* Flag of All Interrupt Register, offset: 0x84 */ __O uint32_t INTR_CLR ; /* Clear Bit of Interupt Register, offset: 0x88 */ __IO uint32_t INTR_EN ; /* Enable of Interrupt Register, offset: 0x8C */ __I uint32_t FAR_SRC ; /* Source of FAR Register, offset: 0x90 */ __IO uint32_t FAR_DST ; /* Sestination of FAR Register, offset: 0x94 */ __IO uint32_t FAR_SIZE ; /* Size of FAR Register, offset: 0x98 */ uint8_t RESERVED_1[4]; __I uint32_t REGION0_MASK ; /* Region 0 Mask Register, offset: 0xA0 */ __I uint32_t REGION1_MASK ; /* Region 1 Mask Register, offset: 0xA4 */ __I uint32_t REGION2_MASK ; /* Region 2 Mask Register, offset: 0xA8 */ } AHB_OVERLAY_Type, *AHB_OVERLAY_MemMapPtr; /** Number of instances of the AHB_OVERLAY module. */ #define AHB_OVERLAY_INSTANCE_COUNT (1u) /* AHB_OVERLAY - Peripheral instance base addresses */ /** Peripheral AHB_OVERLAY base address */ #define AHB_OVERLAY_BASE (0xE0081000u) /** Peripheral AHB_OVERLAY base pointer */ #define AHB_OVERLAY ((AHB_OVERLAY_Type *)AHB_OVERLAY_BASE) /** Array initializer of AHB_OVERLAY peripheral base addresses */ #define AHB_OVERLAY_BASE_ADDRS {AHB_OVERLAY_BASE} /** Array initializer of AHB_OVERLAY peripheral base pointers */ #define AHB_OVERLAY_BASE_PTRS {AHB_OVERLAY} // need fill by yourself ///** Number of interrupt vector arrays for the AHB_OVERLAY module. */ //#define AHB_OVERLAY_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the AHB_OVERLAY module. */ //#define AHB_OVERLAY_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the AHB_OVERLAY peripheral type */ //#define AHB_OVERLAY_IRQS {AHB_OVERLAY_IRQn} /* ---------------------------------------------------------------------------- -- AHB_OVERLAY Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup AHB_OVERLAY_Register_Masks AHB_OVERLAY Register Masks * @{ */ /* REGION_0_SRC Bit Fields */ #define AHB_OVERLAY_REGION_0_SRC_REGION0_SRC_MASK 0x1FFC00u #define AHB_OVERLAY_REGION_0_SRC_REGION0_SRC_SHIFT 10u #define AHB_OVERLAY_REGION_0_SRC_REGION0_SRC_WIDTH 11u #define AHB_OVERLAY_REGION_0_SRC_REGION0_SRC(x) (((uint32_t)(((uint32_t)(x))))&AHB_OVERLAY_REGION_0_SRC_REGION0_SRC_MASK) /* REGION_0_SRC Reg Mask */ #define AHB_OVERLAY_REGION_0_SRC_MASK 0x001FFC00u /* REGION_0_DST Bit Fields */ #define AHB_OVERLAY_REGION_0_DST_REGION0_DST_MASK 0xFFFFFC00u #define AHB_OVERLAY_REGION_0_DST_REGION0_DST_SHIFT 10u #define AHB_OVERLAY_REGION_0_DST_REGION0_DST_WIDTH 22u #define AHB_OVERLAY_REGION_0_DST_REGION0_DST(x) (((uint32_t)(((uint32_t)(x))))&AHB_OVERLAY_REGION_0_DST_REGION0_DST_MASK) /* REGION_0_DST Reg Mask */ #define AHB_OVERLAY_REGION_0_DST_MASK 0xFFFFFC00u /* REGION_0_SIZE Bit Fields */ #define AHB_OVERLAY_REGION_0_SIZE_REGION0_SIZE_MASK 0x7Fu #define AHB_OVERLAY_REGION_0_SIZE_REGION0_SIZE_SHIFT 0u #define AHB_OVERLAY_REGION_0_SIZE_REGION0_SIZE_WIDTH 7u #define AHB_OVERLAY_REGION_0_SIZE_REGION0_SIZE(x) (((uint32_t)(((uint32_t)(x))<