#ifndef _FC7240_FCSPI_NU_Tztufn50_REGS_H_ #define _FC7240_FCSPI_NU_Tztufn50_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- FCSPI Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup FCSPI_Peripheral_Access_Layer FCSPI Peripheral Access Layer * @{ */ /** FCSPI - Size of Registers Arrays */ /** FCSPI - Register Layout Typedef */ typedef struct { uint8_t RESERVED_0[16]; __IO uint32_t CTRL ; /* Control Register, offset: 0x10 */ __IO uint32_t STATUS ; /* Status Register, offset: 0x14 */ __IO uint32_t INT_EN ; /* Interrupt Enable Register, offset: 0x18 */ __IO uint32_t DMA_EN ; /* DMA Enable Register, offset: 0x1C */ __IO uint32_t CFG0 ; /* Configuration Register 0, offset: 0x20 */ __IO uint32_t CFG1 ; /* Configuration Register 1, offset: 0x24 */ uint8_t RESERVED_1[8]; __IO uint32_t DATA_MATCH0 ; /* Data Match Register 0, offset: 0x30 */ __IO uint32_t DATA_MATCH1 ; /* Data Match Register 1, offset: 0x34 */ uint8_t RESERVED_2[8]; __IO uint32_t CLK_CFG ; /* Clock Configuration Register, offset: 0x40 */ uint8_t RESERVED_3[20]; __IO uint32_t FIFO_WTM ; /* FIFO Water Mark Register, offset: 0x58 */ __I uint32_t FIFO_STATUS ; /* FIFO Status Register, offset: 0x5C */ __IO uint32_t TR_CTRL ; /* Transmit and Receive Control Register, offset: 0x60 */ __O uint32_t TX_DATA ; /* Transmit Data Register, offset: 0x64 */ uint8_t RESERVED_4[8]; __I uint32_t RX_STATUS ; /* Receive Status Register, offset: 0x70 */ __I uint32_t RX_DATA ; /* Receive Data Register, offset: 0x74 */ } FCSPI_Type, *FCSPI_MemMapPtr; /** Number of instances of the FCSPI module. */ #define FCSPI_INSTANCE_COUNT (6u) /* FCSPI - Peripheral instance base addresses */ /** Peripheral FCSPI0 base address */ #define FCSPI0_BASE (0x40062000u) /** Peripheral FCSPI0 base pointer */ #define FCSPI0 ((FCSPI_Type *)FCSPI0_BASE) /** Peripheral FCSPI1 base address */ #define FCSPI1_BASE (0x40063000u) /** Peripheral FCSPI1 base pointer */ #define FCSPI1 ((FCSPI_Type *)FCSPI1_BASE) /** Peripheral FCSPI2 base address */ #define FCSPI2_BASE (0x40064000u) /** Peripheral FCSPI2 base pointer */ #define FCSPI2 ((FCSPI_Type *)FCSPI2_BASE) /** Peripheral FCSPI3 base address */ #define FCSPI3_BASE (0x4043f000u) /** Peripheral FCSPI3 base pointer */ #define FCSPI3 ((FCSPI_Type *)FCSPI3_BASE) /** Peripheral FCSPI4 base address */ #define FCSPI4_BASE (0x40440000u) /** Peripheral FCSPI4 base pointer */ #define FCSPI4 ((FCSPI_Type *)FCSPI4_BASE) /** Peripheral FCSPI5 base address */ #define FCSPI5_BASE (0x40441000u) /** Peripheral FCSPI5 base pointer */ #define FCSPI5 ((FCSPI_Type *)FCSPI5_BASE) /** Array initializer of FCSPI peripheral base addresses */ #define FCSPI_BASE_ADDRS {FCSPI0_BASE, FCSPI1_BASE, FCSPI2_BASE, FCSPI3_BASE, FCSPI4_BASE, FCSPI5_BASE} /** Array initializer of FCSPI peripheral base pointers */ #define FCSPI_BASE_PTRS {FCSPI0, FCSPI1, FCSPI2, FCSPI3, FCSPI4, FCSPI5} // need fill by yourself ///** Number of interrupt vector arrays for the FCSPI module. */ //#define FCSPI_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the FCSPI module. */ //#define FCSPI_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the FCSPI peripheral type */ //#define FCSPI_IRQS {FCSPI0_IRQn, FCSPI1_IRQn, FCSPI2_IRQn, FCSPI3_IRQn, FCSPI4_IRQn, FCSPI5_IRQn} /* ---------------------------------------------------------------------------- -- FCSPI Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup FCSPI_Register_Masks FCSPI Register Masks * @{ */ /* CTRL Bit Fields */ #define FCSPI_CTRL_RST_RF_MASK 0x200u #define FCSPI_CTRL_RST_RF_SHIFT 9u #define FCSPI_CTRL_RST_RF_WIDTH 1u #define FCSPI_CTRL_RST_RF(x) (((uint32_t)(((uint32_t)(x))<