#ifndef _FC7240_SCM_NU_Tztufn23_REGS_H_ #define _FC7240_SCM_NU_Tztufn23_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- SCM Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup SCM_Peripheral_Access_Layer SCM Peripheral Access Layer * @{ */ /** SCM - Size of Registers Arrays */ /** SCM - Register Layout Typedef */ typedef struct { __I uint32_t UIDL ; /* Unique Identification Register 0, offset: 0x0 */ __I uint32_t UIDML ; /* Unique Identification Register 1, offset: 0x4 */ __I uint32_t UIDMH ; /* Unique Identification Register 2, offset: 0x8 */ __I uint32_t UIDH ; /* Unique Identification Register 3, offset: 0xC */ __I uint32_t PARTID0 ; /* PART ID Register, offset: 0x10 */ uint8_t RESERVED_0[4]; __I uint32_t CHIPCFG0 ; /* CHIPCFG Register 0, offset: 0x18 */ __I uint32_t CHIPCFG1 ; /* CHIPCFG Register 1, offset: 0x1C */ __IO uint32_t MAMECCEN0 ; /* MAM ECC Enable Register 0, offset: 0x20 */ __IO uint32_t MAMECCEN1 ; /* MAM ECC Enable Register 1, offset: 0x24 */ __IO uint32_t CPU0ECCEN ; /* CPU0 ECC Enable Register, offset: 0x28 */ uint8_t RESERVED_1[24]; __IO uint32_t SRAM_EDC_CTRL ; /* SRAM EDC Control Register, offset: 0x44 */ uint8_t RESERVED_2[4]; __IO uint32_t ROMCFG ; /* ROM Configuration Register, offset: 0x4c */ __IO uint32_t FCSPI_ROUTING ; /* FCSPI Routing Register, offset: 0x50 */ __IO uint32_t FCUART_ROUTING0 ; /* FCUART Routing Register 0, offset: 0x54 */ uint8_t RESERVED_3[8]; __IO uint32_t ADC_ROUTING ; /* ADC Routing Register, offset: 0x60 */ __IO uint32_t FTU_ROUTING ; /* FTU Routing Register, offset: 0x64 */ __IO uint32_t FTU_GTBC ; /* FTU Global Time Base Control Register, offset: 0x68 */ __IO uint32_t FTU_SYNC ; /* FTU SYNC Register, offset: 0x6C */ __IO uint32_t DEBUG_TRACE ; /* DEBUG TRACE Register, offset: 0x70 */ __IO uint32_t SOCMISC ; /* SOCMISC Register, offset: 0x74 */ uint8_t RESERVED_4[8]; __I uint32_t CCM0_STATUS ; /* CCM0 Status Register, offset: 0x80 */ uint8_t RESERVED_5[16]; __IO uint32_t FLEXCAN_ROUTING ; /* FLEXCAN Routing Register, offset: 0x94 */ __IO uint32_t MSC0_ROUTING ; /* MSC0 Routing Register, offset: 0x98 */ uint8_t RESERVED_6[8]; __IO uint32_t FCSMU_SW ; /* FCSMU Software Trigger Register, offset: 0xA4 */ __IO uint32_t ISM_ROUTING ; /* ISM Routing Register, offset: 0xA8 */ uint8_t RESERVED_7[4]; __IO uint32_t MATRIX_STATUS0 ; /* Matrix Status Register 0, offset: 0xB0 */ __IO uint32_t MATRIX_STATUS1 ; /* Matrix Status Register 1, offset: 0xB4 */ __IO uint32_t MATRIX_STATUS2 ; /* Matrix Status Register 2, offset: 0xB8 */ uint8_t RESERVED_8[8]; __IO uint32_t MATRIX_STATUS5 ; /* Matrix Status Register 5, offset: 0xC4 */ __IO uint32_t MATRIX_ID_STATUS0 ; /* Matrix Master ID Status Register, offset: 0xC8 */ __IO uint32_t MATRIX_STATUS6 ; /* Matrix Status Register 6, offset: 0xCC */ __IO uint32_t MATRIX_STATUS7 ; /* Matrix Status Register 7, offset: 0xD0 */ uint8_t RESERVED_9[28]; __IO uint32_t TPU_GTBCM ; /* TPU Global Time Base Control Mask Register, offset: 0xF0 */ __IO uint32_t FTU_GTBCM ; /* FTU Global Time Base Control Mask Register, offset: 0xF4 */ uint8_t RESERVED_10[8]; __IO uint32_t SYSAP_MDO ; /* SYSAP MDO Register, offset: 0x100 */ __I uint32_t SYSAP_MDI ; /* SYSAP MDI Register, offset: 0x104 */ __IO uint32_t SYSAP_CTRL ; /* SYSAP Control Register, offset: 0x108 */ uint8_t RESERVED_11[4]; __IO uint32_t SUBSYS_PCC ; /* HSM_FLEXCORE_PCC Register, offset: 0x110 */ __I uint32_t SUBSYS_STATUS ; /* HSM Status Register, offset: 0x114 */ __I uint32_t MDO_FLAG ; /* Mailbox Data Output Flag Register, offset: 0x118 */ uint8_t RESERVED_12[4]; __IO uint32_t MASTER_HALT_REQ ; /* MASTER Halt Request Register, offset: 0x120 */ __I uint32_t MASTER_HALT_ACK ; /* MASTER Halt ACK Register, offset: 0x124 */ uint8_t RESERVED_13[212]; __IO uint32_t INT_ROUTER_NMI ; /* NMI Interrupt Router Register, offset: 0x1FC */ uint8_t RESERVED_14[1536]; __IO uint32_t CRCCSR ; /* CRC Control Status Register, offset: 0x800 */ __I uint32_t CRCRES ; /* CRC Result Register, offset: 0x804 */ } SCM_Type, *SCM_MemMapPtr; /** Number of instances of the SCM module. */ #define SCM_INSTANCE_COUNT (1u) /* SCM - Peripheral instance base addresses */ /** Peripheral SCM base address */ #define SCM_BASE (0x40072000u) /** Peripheral SCM base pointer */ #define SCM ((SCM_Type *)SCM_BASE) /** Array initializer of SCM peripheral base addresses */ #define SCM_BASE_ADDRS {SCM_BASE} /** Array initializer of SCM peripheral base pointers */ #define SCM_BASE_PTRS {SCM} // need fill by yourself ///** Number of interrupt vector arrays for the SCM module. */ //#define SCM_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the SCM module. */ //#define SCM_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the SCM peripheral type */ //#define SCM_IRQS {SCM_IRQn} /* ---------------------------------------------------------------------------- -- SCM Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup SCM_Register_Masks SCM Register Masks * @{ */ /* UIDL Bit Fields */ #define SCM_UIDL_UIDL_MASK 0xFFFFFFFFu #define SCM_UIDL_UIDL_SHIFT 0u #define SCM_UIDL_UIDL_WIDTH 32u #define SCM_UIDL_UIDL(x) (((uint32_t)(((uint32_t)(x))<