#ifndef _FC7240_EIM_NU_Tztufn26_REGS_H_ #define _FC7240_EIM_NU_Tztufn26_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- EIM Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup EIM_Peripheral_Access_Layer EIM Peripheral Access Layer * @{ */ /** EIM - Size of Registers Arrays */ /** EIM - Register Layout Typedef */ #define EIM_CTRL_REG_COUNT 83 #define EIM_BUS_REG_COUNT 4 typedef struct { __IO uint32_t CR ; /* Configuration Register, offset: 0x0 */ uint8_t RESERVED_0[12]; __IO uint32_t CTRL_REG[EIM_CTRL_REG_COUNT] ; /* Channel N Control Register, offset: 0x10 */ uint8_t RESERVED_1[676]; __IO uint32_t CPU0_LOCKSTEP ; /* CPU0 LOCKSTEP Error Injection Register, offset: 0x400 */ uint8_t RESERVED_2[4]; __IO uint32_t DMA0_LOCKSTEP ; /* DMA0 LOCKSTEP Error Injection Register, offset: 0x408 */ uint8_t RESERVED_3[1012]; __IO uint32_t BUS_REG[EIM_BUS_REG_COUNT] ; /* Bus Register, offset: 0x800 */ } EIM_Type, *EIM_MemMapPtr; /** Number of instances of the EIM module. */ #define EIM_INSTANCE_COUNT (1u) /* EIM - Peripheral instance base addresses */ /** Peripheral EIM base address */ #define EIM_BASE (0x40019000u) /** Peripheral EIM base pointer */ #define EIM ((EIM_Type *)EIM_BASE) /** Array initializer of EIM peripheral base addresses */ #define EIM_BASE_ADDRS {EIM_BASE} /** Array initializer of EIM peripheral base pointers */ #define EIM_BASE_PTRS {EIM} // need fill by yourself ///** Number of interrupt vector arrays for the EIM module. */ //#define EIM_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the EIM module. */ //#define EIM_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the EIM peripheral type */ //#define EIM_IRQS {EIM_IRQn} /* ---------------------------------------------------------------------------- -- EIM Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup EIM_Register_Masks EIM Register Masks * @{ */ /* CR Bit Fields */ #define EIM_CR_GEIEN_MASK 0x1u #define EIM_CR_GEIEN_SHIFT 0u #define EIM_CR_GEIEN_WIDTH 1u #define EIM_CR_GEIEN(x) (((uint32_t)(((uint32_t)(x))<