#ifndef _FC7240_ERM_NU_Tztufn21_REGS_H_ #define _FC7240_ERM_NU_Tztufn21_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- ERM Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup ERM_Peripheral_Access_Layer ERM Peripheral Access Layer * @{ */ /** ERM - Size of Registers Arrays */ /** ERM - Register Layout Typedef */ typedef struct { __IO uint32_t CR0 ; /* Configuration Register 0, offset: 0x0 */ __IO uint32_t CR1 ; /* Configuration Register 1, offset: 0x4 */ __IO uint32_t CR2 ; /* Configuration Register 2, offset: 0x8 */ __IO uint32_t CR3 ; /* Configuration Register 3, offset: 0xC */ __IO uint32_t SR0 ; /* Status Register 0, offset: 0x10 */ __IO uint32_t SR1 ; /* Status Register 1, offset: 0x14 */ __IO uint32_t SR2 ; /* Status Register 2, offset: 0x18 */ __IO uint32_t SR3 ; /* Status Register 3, offset: 0x1C */ uint8_t RESERVED_0[224]; __I uint32_t EAR0 ; /* Error Address Register, offset: 0x100 */ uint8_t RESERVED_1[12]; __I uint32_t EAR1 ; /* Error Address Register, offset: 0x110 */ uint8_t RESERVED_2[12]; __I uint32_t EAR2 ; /* Error Address Register, offset: 0x120 */ uint8_t RESERVED_3[12]; __I uint32_t EAR3 ; /* Error Address Register, offset: 0x130 */ uint8_t RESERVED_4[12]; __I uint32_t EAR4 ; /* Error Address Register, offset: 0x140 */ uint8_t RESERVED_5[12]; __I uint32_t EAR5 ; /* Error Address Register, offset: 0x150 */ uint8_t RESERVED_6[12]; __I uint32_t EAR6 ; /* Error Address Register, offset: 0x160 */ uint8_t RESERVED_7[12]; __I uint32_t EAR7 ; /* Error Address Register, offset: 0x170 */ uint8_t RESERVED_8[12]; __I uint32_t EAR8 ; /* Error Address Register, offset: 0x180 */ uint8_t RESERVED_9[12]; __I uint32_t EAR9 ; /* Error Address Register, offset: 0x190 */ uint8_t RESERVED_10[12]; __I uint32_t EAR10 ; /* Error Address Register, offset: 0x1a0 */ uint8_t RESERVED_11[12]; __I uint32_t EAR11 ; /* Error Address Register, offset: 0x1b0 */ uint8_t RESERVED_12[12]; __I uint32_t EAR12 ; /* Error Address Register, offset: 0x1c0 */ uint8_t RESERVED_13[12]; __I uint32_t EAR13 ; /* Error Address Register, offset: 0x1d0 */ uint8_t RESERVED_14[12]; __I uint32_t EAR14 ; /* Error Address Register, offset: 0x1e0 */ uint8_t RESERVED_15[12]; __I uint32_t EAR15 ; /* Error Address Register, offset: 0x1f0 */ uint8_t RESERVED_16[12]; __I uint32_t EAR16 ; /* Error Address Register, offset: 0x200 */ uint8_t RESERVED_17[12]; __I uint32_t EAR17 ; /* Error Address Register, offset: 0x210 */ uint8_t RESERVED_18[12]; __I uint32_t EAR18 ; /* Error Address Register, offset: 0x220 */ uint8_t RESERVED_19[12]; __I uint32_t EAR19 ; /* Error Address Register, offset: 0x230 */ uint8_t RESERVED_20[12]; __I uint32_t EAR20 ; /* Error Address Register, offset: 0x240 */ uint8_t RESERVED_21[12]; __I uint32_t EAR21 ; /* Error Address Register, offset: 0x250 */ uint8_t RESERVED_22[12]; __I uint32_t EAR22 ; /* Error Address Register, offset: 0x260 */ uint8_t RESERVED_23[12]; __I uint32_t EAR23 ; /* Error Address Register, offset: 0x270 */ uint8_t RESERVED_24[12]; __I uint32_t EAR24 ; /* Error Address Register, offset: 0x280 */ uint8_t RESERVED_25[12]; __I uint32_t EAR25 ; /* Error Address Register, offset: 0x290 */ uint8_t RESERVED_26[12]; __I uint32_t EAR26 ; /* Error Address Register, offset: 0x2a0 */ uint8_t RESERVED_27[12]; __I uint32_t EAR27 ; /* Error Address Register, offset: 0x2b0 */ } ERM_Type, *ERM_MemMapPtr; /** Number of instances of the ERM module. */ #define ERM_INSTANCE_COUNT (1u) /* ERM - Peripheral instance base addresses */ /** Peripheral ERM base address */ #define ERM_BASE (0x40018000u) /** Peripheral ERM base pointer */ #define ERM ((ERM_Type *)ERM_BASE) /** Array initializer of ERM peripheral base addresses */ #define ERM_BASE_ADDRS {ERM_BASE} /** Array initializer of ERM peripheral base pointers */ #define ERM_BASE_PTRS {ERM} // need fill by yourself ///** Number of interrupt vector arrays for the ERM module. */ //#define ERM_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the ERM module. */ //#define ERM_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the ERM peripheral type */ //#define ERM_IRQS {ERM_IRQn} /* ---------------------------------------------------------------------------- -- ERM Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup ERM_Register_Masks ERM Register Masks * @{ */ /* CR0 Bit Fields */ #define ERM_CR0_ESCIE0_MASK 0x80000000u #define ERM_CR0_ESCIE0_SHIFT 31u #define ERM_CR0_ESCIE0_WIDTH 1u #define ERM_CR0_ESCIE0(x) (((uint32_t)(((uint32_t)(x))<