#ifndef _FC7240_TPU_H_NU_Tztufn35_REGS_H_ #define _FC7240_TPU_H_NU_Tztufn35_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- TPU_H Peripheral Access Layer ---------------------------------------------------------------------------- */ #define TPU_H_CH_COUNT 32 /*! * @addtogroup TPU_H_Peripheral_Access_Layer TPU_H Peripheral Access Layer * @{ */ /** TPU_H - Size of Registers Arrays */ /** TPU_H - Register Layout Typedef */ typedef struct { uint8_t RESERVED_0[16]; __I uint32_t GCR_VSR ; /* Global Control Region -Visible Status Register, offset: 0x10 */ __I uint32_t GCR_VIR ; /* Global Control Region - Visible Input Status Register, offset: 0x14 */ __I uint32_t GCR_VOR ; /* Global Control Region - Visible Output Status Register, offset: 0x18 */ __I uint32_t GCR_VOBR ; /* Global Control Region - Visible Output Enable Status Register, offset: 0x1C */ __I uint32_t GCR_VM1R ; /* Global Control Region - Visible MRL1 Register, offset: 0x20 */ __I uint32_t GCR_VM2R ; /* Global Control Region -Visible MRL2 Register, offset: 0x24 */ __I uint32_t GCR_VT1R ; /* Global Control Region - Visible TDL1 Register, offset: 0x28 */ __I uint32_t GCR_VT2R ; /* Global Control Region - Visible TDL2 Register, offset: 0x2C */ __I uint32_t GCR_EM1R ; /* Global Control Region - Visible Event by MRL1 Register, offset: 0x30 */ __I uint32_t GCR_EM2R ; /* Global Control Region - Visible Event by MRL2 Register, offset: 0x34 */ __I uint32_t GCR_ET1R ; /* Global Control Region - Visible Event by TDL1 Register, offset: 0x38 */ __I uint32_t GCR_ET2R ; /* Global Control Region - Visible Event by TDL2 Register, offset: 0x3C */ __I uint32_t GCR_VHSR ; /* Global Control Region - Visible Host Acknowledge Register, offset: 0x40 */ uint8_t RESERVED_1[188]; __I uint32_t TBR_CR ; /* Time Bases Region - Control Register, offset: 0x100 */ __IO uint32_t TBR_T1R ; /* Time Base Region - TCR1 Value Register, offset: 0x104 */ __IO uint32_t TBR_T2R ; /* Time Base Region - TCR2 Value Register, offset: 0x108 */ uint8_t RESERVED_2[4]; __I uint32_t TBR_TPR ; /* Time Base Region - Tooth Program Register, offset: 0x110 */ __IO uint32_t TBR_TRR ; /* Time Base Region - Tick Rate Register, offset: 0x114 */ __IO uint32_t TBR_T1MR ; /* Time Base Region - TCR1 Maximum Register, offset: 0x118 */ __IO uint32_t TBR_T2MR ; /* Time Base Region - TCR2 Maximum Register, offset: 0x11C */ uint8_t RESERVED_3[1760]; struct{ /* offset: 0x800, array step: 0x40 */ __IO uint32_t CR ; /* Channel N Control Register, offset: 0x800 */ __I uint32_t SR ; /* Channel N Status Register, offset: 0x804 */ __IO uint32_t SCR ; /* Channel N Status Control Register, offset: 0x808 */ __I uint32_t EFR ; /* Channel N Event and Flag Register, offset: 0x80c */ uint8_t RESERVED_4[48]; } CH[TPU_H_CH_COUNT]; } TPU_H_Type, *TPU_H_MemMapPtr; /** Number of instances of the TPU_H module. */ #define TPU_H_INSTANCE_COUNT (1u) /* TPU_H - Peripheral instance base addresses */ /** Peripheral TPU_H base address */ #define TPU_H_BASE (0x40445000u) /** Peripheral TPU_H base pointer */ #define TPU_H ((TPU_H_Type *)TPU_H_BASE) /** Array initializer of TPU_H peripheral base addresses */ #define TPU_H_BASE_ADDRS {TPU_H_BASE} /** Array initializer of TPU_H peripheral base pointers */ #define TPU_H_BASE_PTRS {TPU_H} // need fill by yourself ///** Number of interrupt vector arrays for the TPU_H module. */ //#define TPU_H_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the TPU_H module. */ //#define TPU_H_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the TPU_H peripheral type */ //#define TPU_H_IRQS {TPU_H_IRQn} /* ---------------------------------------------------------------------------- -- TPU_H Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup TPU_H_Register_Masks TPU_H Register Masks * @{ */ /* GCR_VSR Bit Fields */ #define TPU_H_GCR_VSR_SR_MASK 0xFFFFFFFFu #define TPU_H_GCR_VSR_SR_SHIFT 0u #define TPU_H_GCR_VSR_SR_WIDTH 32u #define TPU_H_GCR_VSR_SR(x) (((uint32_t)(((uint32_t)(x))<