#ifndef _FC7240_MSC_NU_Tztufn7_REGS_H_ #define _FC7240_MSC_NU_Tztufn7_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- MSC Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup MSC_Peripheral_Access_Layer MSC Peripheral Access Layer * @{ */ /** MSC - Size of Registers Arrays */ /** MSC - Register Layout Typedef */ typedef struct { __IO uint32_t GCR ; /* Global Control Register, offset: 0x00 */ __O uint32_t CCULR ; /* Channel Control Unlock Register, offset: 0x04 */ uint8_t RESERVED_0[8]; __IO uint32_t RCCSR ; /* Reception Channel Control and Status Register, offset: 0x10 */ __IO uint32_t TCCTR ; /* Transmitting Channel Control Register, offset: 0x14 */ __IO uint32_t TCSTR ; /* Transmitting Channel Status Register, offset: 0x18 */ __IO uint32_t TCDAR ; /* Transmitting Channel Data Register, offset: 0x1c */ __IO uint32_t TCCOR ; /* Transmitting Channel Command Register, offset: 0x20 */ __IO uint32_t TCSLR ; /* Transmitting Channel Source Selection Low Register, offset: 0x24 */ __IO uint32_t TCSHR ; /* Transmitting Channel Source Selection High Register, offset: 0x28 */ __IO uint32_t TCELR ; /* Transmitting Channel Emergency Load Register, offset: 0x2c */ __IO uint32_t RDR0 ; /* Reception Data Register0, offset: 0x30 */ __IO uint32_t RDR1 ; /* Reception Data Register1, offset: 0x34 */ __IO uint32_t RDR2 ; /* Reception Data Register2, offset: 0x38 */ __IO uint32_t RDR3 ; /* Reception Data Register3, offset: 0x3c */ __IO uint32_t INCR ; /* Interrupt Control Register, offset: 0x40 */ __I uint32_t INSR ; /* Interrupt Status Register, offset: 0x44 */ __O uint32_t ISCR ; /* Interrupt Set/Clear Register, offset: 0x48 */ __IO uint32_t IOCR ; /* Input/Output Control Register, offset: 0x4c */ uint8_t RESERVED_1[8]; __IO uint32_t TCCTR1 ; /* Transmitting Channel Control Register1, offset: 0x58 */ __IO uint32_t RTOR ; /* Reception Timeout Register, offset: 0x5c */ uint8_t RESERVED_2[140]; __IO uint32_t SRCR ; /* Software Reset Clear Register, offset: 0xec */ uint8_t RESERVED_3[4]; __IO uint32_t MSR ; /* Software Reset Register, offset: 0xf4 */ } MSC_Type, *MSC_MemMapPtr; /** Number of instances of the MSC module. */ #define MSC_INSTANCE_COUNT (1u) /* MSC - Peripheral instance base addresses */ /** Peripheral MSC base address */ #define MSC0_BASE (0x40474000u) /** Peripheral MSC base pointer */ #define MSC0 ((MSC_Type *)MSC0_BASE) /** Array initializer of MSC peripheral base addresses */ #define MSC_BASE_ADDRS {MSC0_BASE} /** Array initializer of MSC peripheral base pointers */ #define MSC_BASE_PTRS {MSC0} // need fill by yourself ///** Number of interrupt vector arrays for the MSC module. */ //#define MSC_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the MSC module. */ //#define MSC_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the MSC peripheral type */ //#define MSC_IRQS {MSC_IRQn} /* ---------------------------------------------------------------------------- -- MSC Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup MSC_Register_Masks MSC Register Masks * @{ */ /* GCR Bit Fields */ #define MSC_GCR_WP_EN_MASK 0x2u #define MSC_GCR_WP_EN_SHIFT 1u #define MSC_GCR_WP_EN_WIDTH 1u #define MSC_GCR_WP_EN(x) (((uint32_t)(((uint32_t)(x))<