#ifndef _FC7240_STCU_NU_Tztufn4_REGS_H_ #define _FC7240_STCU_NU_Tztufn4_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- STCU Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup STCU_Peripheral_Access_Layer STCU Peripheral Access Layer * @{ */ /** STCU - Size of Registers Arrays */ /** STCU - Register Layout Typedef */ typedef struct { __IO uint32_t SELF_TEST_KEY ; /* Self Test Key Register, offset: 0x0 */ __IO uint32_t SELF_TEST_CTRL ; /* Self Test Control Register, offset: 0x4 */ __IO uint32_t SELF_TEST_STATUS ; /* Self Test Status Register, offset: 0x8 */ __IO uint32_t SELF_TEST_TRIG_A ; /* Self Test Trigger A Register, offset: 0xC */ __IO uint32_t SELF_TEST_TRIG_B ; /* Self Test Trigger B Register, offset: 0x10 */ __IO uint32_t SELF_TEST_RESET ; /* Self Test Reset Register, offset: 0x14 */ __IO uint32_t LBIST_PAT_CTRL ; /* LBIST Pattern Control Register, offset: 0x18 */ uint8_t RESERVED_0[4]; __IO uint32_t LBIST_EXP_MISR ; /* LBIST Expected MISR Register, offset: 0x20 */ __I uint32_t LBIST_ACT_MISR ; /* LBIST Actual MISR Register, offset: 0x24 */ __IO uint32_t LBIST_STATUS ; /* LBIST Status Register, offset: 0x28 */ uint8_t RESERVED_1[8]; __IO uint32_t MBIST_SEL ; /* MBIST Select Register, offset: 0x34 */ __IO uint32_t MBIST_ALG ; /* MBIST Algorithm Register, offset: 0x38 */ __IO uint32_t MBIST_DONE_STATUS ; /* MBIST Done Status Register, offset: 0x3C */ __IO uint32_t MBIST_FAIL_STATUS ; /* MBIST Fail Status Register, offset: 0x40 */ __IO uint32_t USER_GP ; /* User General Purpose Register, offset: 0x44 */ __IO uint32_t SRAM_INI_CTRL ; /* SRAM Initialization Control Register, offset: 0x48 */ __I uint32_t SRAM_INI_STATUS ; /* SRAM Initialization Status Register, offset: 0x4C */ __IO uint32_t SRAM_INI_SEL ; /* SRAM Initialization Select Register, offset: 0x50 */ __IO uint32_t SRAM_INI_DONE_STATUS ; /* SRAM Initialization Done Status Register, offset: 0x54 */ __IO uint32_t IRQ ; /* Interrupt Request Register, offset: 0x58 */ } STCU_Type, *STCU_MemMapPtr; /** Number of instances of the STCU module. */ #define STCU_INSTANCE_COUNT (1u) /* STCU - Peripheral instance base addresses */ /** Peripheral STCU base address */ #define STCU_BASE (0x4007f000u) /** Peripheral STCU base pointer */ #define STCU ((STCU_Type *)STCU_BASE) /** Array initializer of STCU peripheral base addresses */ #define STCU_BASE_ADDRS {STCU_BASE} /** Array initializer of STCU peripheral base pointers */ #define STCU_BASE_PTRS {STCU} // need fill by yourself ///** Number of interrupt vector arrays for the STCU module. */ //#define STCU_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the STCU module. */ //#define STCU_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the STCU peripheral type */ //#define STCU_IRQS {STCU_IRQn} /* ---------------------------------------------------------------------------- -- STCU Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup STCU_Register_Masks STCU Register Masks * @{ */ /* SELF_TEST_KEY Bit Fields */ #define STCU_SELF_TEST_KEY_KEY_MASK 0xFFFFFFFFu #define STCU_SELF_TEST_KEY_KEY_SHIFT 0u #define STCU_SELF_TEST_KEY_KEY_WIDTH 32u #define STCU_SELF_TEST_KEY_KEY(x) (((uint32_t)(((uint32_t)(x))<