#ifndef _FC7240_PORT_NU_Tztufn47_REGS_H_ #define _FC7240_PORT_NU_Tztufn47_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- PORT Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup PORT_Peripheral_Access_Layer PORT Peripheral Access Layer * @{ */ /** PORT - Size of Registers Arrays */ /** PORT - Register Layout Typedef */ #define PORT_PCR_COUNT 32 typedef struct { __IO uint32_t PCR[PORT_PCR_COUNT] ; /* Port Control Register, offset: 0x0 */ __O uint32_t GPCLR ; /* Global Pin Control Low Register, offset: 0x80 */ __O uint32_t GPCHR ; /* Global Pin Control High Register, offset: 0x84 */ __O uint32_t GICLR ; /* Global Interrupt Control Low Register, offset: 0x88 */ __O uint32_t GICHR ; /* Global Interrupt Control High Register, offset: 0x8C */ uint8_t RESERVED_0[16]; __IO uint32_t ISFR ; /* Interrupt Status Flag Register, offset: 0xA0 */ uint8_t RESERVED_1[28]; __IO uint32_t DFER ; /* Digital Filter Enable Register, offset: 0xC0 */ __IO uint32_t DFCR ; /* Digital Filter Clock Register, offset: 0xC4 */ __IO uint32_t DFWR ; /* Digital Filter Width Register, offset: 0xC8 */ __IO uint32_t GLDWP ; /* Global Domain Write Protection Register, offset: 0xCC */ } PORT_Type, *PORT_MemMapPtr; /** Number of instances of the PORT module. */ #define PORT_INSTANCE_COUNT (5u) /* PORT - Peripheral instance base addresses */ /** Peripheral PORTA base address */ #define PORTA_BASE (0x40047000u) /** Peripheral PORTA base pointer */ #define PORTA ((PORT_Type *)PORTA_BASE) /** Peripheral PORTB base address */ #define PORTB_BASE (0x40048000u) /** Peripheral PORTB base pointer */ #define PORTB ((PORT_Type *)PORTB_BASE) /** Peripheral PORTC base address */ #define PORTC_BASE (0x40049000u) /** Peripheral PORTC base pointer */ #define PORTC ((PORT_Type *)PORTC_BASE) /** Peripheral PORTD base address */ #define PORTD_BASE (0x4004a000u) /** Peripheral PORTD base pointer */ #define PORTD ((PORT_Type *)PORTD_BASE) /** Peripheral PORTE base address */ #define PORTE_BASE (0x4004b000u) /** Peripheral PORTE base pointer */ #define PORTE ((PORT_Type *)PORTE_BASE) /** Array initializer of PORT peripheral base addresses */ #define PORT_BASE_ADDRS {PORTA_BASE, PORTB_BASE, PORTC_BASE, PORTD_BASE, PORTE_BASE} /** Array initializer of PORT peripheral base pointers */ #define PORT_BASE_PTRS {PORTA, PORTB, PORTC, PORTD, PORTE} // need fill by yourself ///** Number of interrupt vector arrays for the PORT module. */ //#define PORT_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the PORT module. */ //#define PORT_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the PORT peripheral type */ //#define PORT_IRQS {PORTA_IRQn, PORTB_IRQn, PORTC_IRQn, PORTD_IRQn, PORTE_IRQn} /* ---------------------------------------------------------------------------- -- PORT Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup PORT_Register_Masks PORT Register Masks * @{ */ /* PCR Bit Fields */ #define PORT_PCR_DWPLK_MASK 0x80000000u #define PORT_PCR_DWPLK_SHIFT 31u #define PORT_PCR_DWPLK_WIDTH 1u #define PORT_PCR_DWPLK(x) (((uint32_t)(((uint32_t)(x))<