#ifndef _FC7240_SEC_NU_Tztufn17_REGS_H_ #define _FC7240_SEC_NU_Tztufn17_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- SEC Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup SEC_Peripheral_Access_Layer SEC Peripheral Access Layer * @{ */ /** SEC - Size of Registers Arrays */ /** SEC - Register Layout Typedef */ #define SEC_DEK_COUNT 4 typedef struct { __IO uint32_t DEN ; /* Debug Enable Register, offset: 0x0 */ __I uint32_t FSEC0 ; /* System Security_Control Register0, offset: 0x4 */ __I uint32_t FSEC1 ; /* System Security_Control Register1, offset: 0x8 */ __IO uint32_t DCWOR ; /* Debug Control Write Once Register, offset: 0xC */ __O uint32_t DEK[SEC_DEK_COUNT] ; /* Debug Re-Enable Key Register, offset: 0x10 */ __IO uint32_t TME ; /* Test Mode Enable Register, offset: 0x20 */ __IO uint32_t TMEA ; /* Test Mode Re-Enable Allow Register, offset: 0x24 */ __O uint32_t TMEK ; /* Test Mode Re-Enable Key Register, offset: 0x28 */ uint8_t RESERVED_0[4]; __IO uint32_t FCR0 ; /* Flash Control Register0, offset: 0x30 */ uint8_t RESERVED_1[8]; __IO uint32_t NKRP ; /* NVR Key Read Protection, offset: 0x3C */ uint8_t RESERVED_2[32]; __I uint32_t BCS ; /* Boot Configuration Status Register, offset: 0x60 */ __I uint32_t UKAC ; /* User Key Access Configuration Register, offset: 0x64 */ __IO uint32_t BRC0 ; /* BootROM Configuration Register0, offset: 0x68 */ __I uint32_t BRC1 ; /* BootROM Configuration Register1, offset: 0x6C */ __IO uint32_t SW_CFG_ISP_FLG ; /* Software Configuration to Enter ISP Flag Register, offset: 0x70 */ __I uint32_t BRC2 ; /* BootROM Configuration Register2, offset: 0x74 */ __I uint32_t IMGEA ; /* Image Address Register, offset: 0x78 */ __IO uint32_t NVR_VER ; /* NVR Version Register, offset: 0x7C */ uint8_t RESERVED_3[8]; __I uint32_t LCSTAT ; /* Lifecycle Status Register, offset: 0x88 */ __IO uint32_t FAC ; /* Flash Access Control Register, offset: 0x8C */ uint8_t RESERVED_4[4]; __IO uint32_t FLEXCORE_EN ; /* FlexCore Enable Register, offset: 0x94 */ __IO uint32_t FLEX_CODE_ADDR ; /* Code Address for FlexCore Register, offset: 0x98 */ __IO uint32_t PFLASH_PRLLL_EN ; /* PFLASH Parallel Enable Register, offset: 0x9C */ } SEC_Type, *SEC_MemMapPtr; /** Number of instances of the SEC module. */ #define SEC_INSTANCE_COUNT (1u) /* SEC - Peripheral instance base addresses */ /** Peripheral SEC base address */ #define SEC_BASE (0x40014000u) /** Peripheral SEC base pointer */ #define SEC ((SEC_Type *)SEC_BASE) /** Array initializer of SEC peripheral base addresses */ #define SEC_BASE_ADDRS {SEC_BASE} /** Array initializer of SEC peripheral base pointers */ #define SEC_BASE_PTRS {SEC} // need fill by yourself ///** Number of interrupt vector arrays for the SEC module. */ //#define SEC_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the SEC module. */ //#define SEC_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the SEC peripheral type */ //#define SEC_IRQS {SEC_IRQn} /* ---------------------------------------------------------------------------- -- SEC Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup SEC_Register_Masks SEC Register Masks * @{ */ /* DEN Bit Fields */ #define SEC_DEN_DEN_MASK 0xFu #define SEC_DEN_DEN_SHIFT 0u #define SEC_DEN_DEN_WIDTH 4u #define SEC_DEN_DEN(x) (((uint32_t)(((uint32_t)(x))<