#ifndef _FC7240_FCUART_NU_Tztufn49_REGS_H_ #define _FC7240_FCUART_NU_Tztufn49_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- FCUART Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup FCUART_Peripheral_Access_Layer FCUART Peripheral Access Layer * @{ */ /** FCUART - Size of Registers Arrays */ /** FCUART - Register Layout Typedef */ typedef struct { uint8_t RESERVED_0[8]; __IO uint32_t RST ; /* Software Reset Register, offset: 0x8 */ __IO uint32_t PIN_CFG ; /* Pin Configuration Register, offset: 0xC */ __IO uint32_t BAUD ; /* Baud Rate Register, offset: 0x10 */ __IO uint32_t STAT ; /* Status Register, offset: 0x14 */ __IO uint32_t CTRL ; /* Control Register, offset: 0x18 */ __IO uint32_t DATA ; /* Data Register, offset: 0x1C */ __IO uint32_t MATCH ; /* Match Address Register, offset: 0x20 */ __IO uint32_t MODIR ; /* Modem IrDA Register, offset: 0x24 */ __IO uint32_t FIFO ; /* FIFO Register, offset: 0x28 */ __IO uint32_t WATERMARK ; /* Watermark Register, offset: 0x2C */ } FCUART_Type, *FCUART_MemMapPtr; /** Number of instances of the FCUART module. */ #define FCUART_INSTANCE_COUNT (8u) /* FCUART - Peripheral instance base addresses */ /** Peripheral FCUART0 base address */ #define FCUART0_BASE (0x40068000u) /** Peripheral FCUART0 base pointer */ #define FCUART0 ((FCUART_Type *)FCUART0_BASE) /** Peripheral FCUART1 base address */ #define FCUART1_BASE (0x40069000u) /** Peripheral FCUART1 base pointer */ #define FCUART1 ((FCUART_Type *)FCUART1_BASE) /** Peripheral FCUART2 base address */ #define FCUART2_BASE (0x4006a000u) /** Peripheral FCUART2 base pointer */ #define FCUART2 ((FCUART_Type *)FCUART2_BASE) /** Peripheral FCUART3 base address */ #define FCUART3_BASE (0x4006b000u) /** Peripheral FCUART3 base pointer */ #define FCUART3 ((FCUART_Type *)FCUART3_BASE) /** Peripheral FCUART4 base address */ #define FCUART4_BASE (0x40468000u) /** Peripheral FCUART4 base pointer */ #define FCUART4 ((FCUART_Type *)FCUART4_BASE) /** Peripheral FCUART5 base address */ #define FCUART5_BASE (0x40469000u) /** Peripheral FCUART5 base pointer */ #define FCUART5 ((FCUART_Type *)FCUART5_BASE) /** Peripheral FCUART6 base address */ #define FCUART6_BASE (0x4046a000u) /** Peripheral FCUART6 base pointer */ #define FCUART6 ((FCUART_Type *)FCUART6_BASE) /** Peripheral FCUART7 base address */ #define FCUART7_BASE (0x4046b000u) /** Peripheral FCUART7 base pointer */ #define FCUART7 ((FCUART_Type *)FCUART7_BASE) /** Array initializer of FCUART peripheral base addresses */ #define FCUART_BASE_ADDRS {FCUART0_BASE, FCUART1_BASE, FCUART2_BASE, FCUART3_BASE, FCUART4_BASE, FCUART5_BASE, FCUART6_BASE, FCUART7_BASE} /** Array initializer of FCUART peripheral base pointers */ #define FCUART_BASE_PTRS {FCUART0, FCUART1, FCUART2, FCUART3, FCUART4, FCUART5, FCUART6, FCUART7} // need fill by yourself ///** Number of interrupt vector arrays for the FCUART module. */ //#define FCUART_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the FCUART module. */ //#define FCUART_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the FCUART peripheral type */ //#define FCUART_IRQS {FCUART0_IRQn, FCUART1_IRQn, FCUART2_IRQn, FCUART3_IRQn, FCUART4_IRQn, FCUART5_IRQn, FCUART6_IRQn, FCUART7_IRQn} /* ---------------------------------------------------------------------------- -- FCUART Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup FCUART_Register_Masks FCUART Register Masks * @{ */ /* RST Bit Fields */ #define FCUART_RST_RST_MASK 0x2u #define FCUART_RST_RST_SHIFT 1u #define FCUART_RST_RST_WIDTH 1u #define FCUART_RST_RST(x) (((uint32_t)(((uint32_t)(x))<